Class DefaultBase64Codec
java.lang.Object
com.yubico.yubikit.core.internal.codec.DefaultBase64Codec
- All Implemented Interfaces:
Base64Codec
Default implementation of Base64Codec
Only for internal use.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]fromString(String data) byte[]fromUrlSafeString(String data) toString(byte[] data) toUrlSafeString(byte[] data)
-
Constructor Details
-
DefaultBase64Codec
public DefaultBase64Codec()
-
-
Method Details
-
toUrlSafeString
- Specified by:
toUrlSafeStringin interfaceBase64Codec- Parameters:
data- binary data- Returns:
- String with no wrapped base64 data without padding, with only safe characters as defined in RFC 4648
-
toString
- Specified by:
toStringin interfaceBase64Codec- Parameters:
data- binary data- Returns:
- String with no wrapped base64 data without padding
-
fromUrlSafeString
- Specified by:
fromUrlSafeStringin interfaceBase64Codec- Parameters:
data- String with no wrapped base64 data without padding, with only safe characters as defined in RFC 4648- Returns:
- decoded binary data
-
fromString
- Specified by:
fromStringin interfaceBase64Codec- Parameters:
data- String with no wrapped base64 content- Returns:
- decoded binary data
-