class Base64Url extends Codec
A codec for the base64url encoding protocol.
Methods
__construct(TransformInterface $encodeTransform = null, TransformInterface $decodeTransform = null)
Construct a new base64url codec. |
||
TransformInterface |
encodeTransform()
Get the encode transform. |
from Codec |
TransformInterface |
decodeTransform()
Get the decode transform. |
from Codec |
string |
encode(string $data)
Encode the supplied data. |
from Codec |
string |
decode(string $data)
Decode the supplied data. |
from Codec |
TransformStreamInterface |
createEncodeStream(integer|null $bufferSize = null)
Create a new encode stream. |
from Codec |
TransformStreamInterface |
createDecodeStream(integer|null $bufferSize = null)
Create a new decode stream. |
from Codec |
static CodecInterface |
instance()
Get the static instance of this codec. |
Details
at line 45
public
__construct(TransformInterface $encodeTransform = null, TransformInterface $decodeTransform = null)
Construct a new base64url codec.
in Codec at line 42
public TransformInterface
encodeTransform()
Get the encode transform.
in Codec at line 52
public TransformInterface
decodeTransform()
Get the decode transform.
in Codec at line 65
public string
encode(string $data)
Encode the supplied data.
in Codec at line 85
public string
decode(string $data)
Decode the supplied data.
in Codec at line 104
public TransformStreamInterface
createEncodeStream(integer|null $bufferSize = null)
Create a new encode stream.
in Codec at line 116
public TransformStreamInterface
createDecodeStream(integer|null $bufferSize = null)
Create a new decode stream.
at line 30
static public CodecInterface
instance()
Get the static instance of this codec.