Package org.stellar.sdk
Interface Base64
public interface Base64
Base64 interface used by the SDK to encode and decode strings and bytes.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Decodes base64 string to bytesbyte[]
encode
(byte[] data) Encodes bytes to base64 bytesencodeToString
(byte[] data) Encodes bytes to base64 string
-
Method Details
-
encodeToString
Encodes bytes to base64 string- Parameters:
data
- bytes to encode- Returns:
- encoded string
-
encode
byte[] encode(byte[] data) Encodes bytes to base64 bytes- Parameters:
data
- bytes to encode- Returns:
- encoded bytes
-
decode
Decodes base64 string to bytes- Parameters:
data
- string to decode- Returns:
- decoded bytes
-