Interface PublicKeySerde
public interface PublicKeySerde
This is responsible for public key serialization/deserialization. As example, user may want PEM based public keys.
-
Method Summary
Modifier and TypeMethodDescriptionreadPubKey(String encoded) Deserializes public key out of its string representation.writePubKey(PublicKey publicKey) Serializes public key out into string representation.
-
Method Details
-
readPubKey
Deserializes public key out of its string representation.- Parameters:
encoded- String representation of key (typically Base64 encoded bytes)- Returns:
- Deserialized public key
-
writePubKey
Serializes public key out into string representation.- Parameters:
publicKey- Public key to serialize- Returns:
- String representation of public key (typically Base64 encoded bytes)
-