PHP Class Emarref\Jwt\Encoding\Base64

Inheritance: implements Emarref\Jwt\Encoding\EncoderInterface
Mostra file Open project: emarref/jwt

Public Methods

Method Description
__construct ( boolean $urlSafe = true, boolean $strict = true )
decode ( string $value ) : string
encode ( string $value ) : string

Protected Methods

Method Description
urlDecode ( string $value ) : string
urlEncode ( string $value ) : string Return a URL-safe representation of a base64-encoded value.

Method Details

__construct() public method

public __construct ( boolean $urlSafe = true, boolean $strict = true )
$urlSafe boolean
$strict boolean

decode() public method

public decode ( string $value ) : string
$value string
return string

encode() public method

public encode ( string $value ) : string
$value string
return string

urlDecode() protected method

protected urlDecode ( string $value ) : string
$value string
return string

urlEncode() protected method

Return a URL-safe representation of a base64-encoded value.
protected urlEncode ( string $value ) : string
$value string
return string