Interface PublicKeyIdentity

All Known Implementing Classes:
KeyAgentIdentity, KeyPairIdentity

public interface PublicKeyIdentity
Represents a public key identity
  • Method Details

    • getPublicKey

      PublicKey getPublicKey()
      Returns:
      The PublicKey identity value
    • sign

      Map.Entry<String,byte[]> sign(SessionContext session, String algo, byte[] data) throws Exception
      Proves the public key identity by signing the given data
      Parameters:
      session - The SessionContext for calling this method - may be null if not called within a session context
      algo - Recommended signature algorithm - if null/empty then one will be selected based on the key type and/or signature factories. Note: even if specific algorithm specified, the implementation may disregard and choose another
      data - Data to sign
      Returns:
      used algorithm + signed data - using the identity
      Throws:
      Exception - If failed to sign the data