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 Type
    Method
    Description
    readPubKey(String encoded)
    Deserializes public key out of its string representation.
    Serializes public key out into string representation.
  • Method Details

    • readPubKey

      PublicKey readPubKey(String encoded)
      Deserializes public key out of its string representation.
      Parameters:
      encoded - String representation of key (typically Base64 encoded bytes)
      Returns:
      Deserialized public key
    • writePubKey

      String writePubKey(PublicKey publicKey)
      Serializes public key out into string representation.
      Parameters:
      publicKey - Public key to serialize
      Returns:
      String representation of public key (typically Base64 encoded bytes)