Interface Base64Codec
- All Known Implementing Classes:
DefaultBase64Codec
public interface Base64Codec
Helper for performing Base64 data conversions.
Only for internal use.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]fromString(String data) byte[]fromUrlSafeString(String data) toString(byte[] data) toUrlSafeString(byte[] data)
-
Method Details
-
toString
- Parameters:
data- binary data- Returns:
- String with no wrapped base64 data without padding
-
fromString
- Parameters:
data- String with no wrapped base64 content- Returns:
- decoded binary data
-
toUrlSafeString
- Parameters:
data- binary data- Returns:
- String with no wrapped base64 data without padding, with only safe characters as defined in RFC 4648
-
fromUrlSafeString
- Parameters:
data- String with no wrapped base64 data without padding, with only safe characters as defined in RFC 4648- Returns:
- decoded binary data
-