java.lang.Object | |
↳ | org.bouncycastle.util.encoders.UrlBase64 |
Convert binary data to and from UrlBase64 encoding. This is identical to Base64 encoding, except that the padding character is "." and the other non-alphanumeric characters are "-" and "_" instead of "+" and "/".
The purpose of UrlBase64 encoding is to provide a compact encoding of binary data that is safe for use as an URL parameter. Base64 encoding does not produce encoded values that are safe for use in URLs, since "/" can be interpreted as a path delimiter; "+" is the encoded form of a space; and "=" is used to separate a name from the corresponding value in an URL parameter.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Decode the URL safe base 64 encoded String data writing it to the given output stream,
whitespace characters will be ignored.
| |||||||||||
Decode the URL safe base 64 encoded input data - white space will be ignored.
| |||||||||||
decode the URL safe base 64 encoded String data - whitespace will be ignored.
| |||||||||||
decode the URL safe base 64 encoded byte data writing it to the given output stream,
whitespace characters will be ignored.
| |||||||||||
Encode the byte data writing it to the given output stream.
| |||||||||||
Encode the input data producing a URL safe base 64 encoded byte array.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Decode the URL safe base 64 encoded String data writing it to the given output stream, whitespace characters will be ignored.
IOException |
---|
Decode the URL safe base 64 encoded input data - white space will be ignored.
decode the URL safe base 64 encoded String data - whitespace will be ignored.
decode the URL safe base 64 encoded byte data writing it to the given output stream, whitespace characters will be ignored.
IOException |
---|
Encode the byte data writing it to the given output stream.
IOException |
---|
Encode the input data producing a URL safe base 64 encoded byte array.