Interface PublicKeyIdentity
-
- All Known Implementing Classes:
KeyAgentIdentity,KeyPairIdentity
public interface PublicKeyIdentityRepresents a public key identity
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.security.PublicKeygetPublicKey()byte[]sign(SessionContext session, byte[] data)Proves the public key identity by signing the given data
-
-
-
Method Detail
-
getPublicKey
java.security.PublicKey getPublicKey()
- Returns:
- The
PublicKeyidentity value
-
sign
byte[] sign(SessionContext session, byte[] data) throws java.lang.Exception
Proves the public key identity by signing the given data- Parameters:
session- TheSessionContextfor calling this method - may benullif not called within a session contextdata- Data to sign- Returns:
- Signed data - using the identity
- Throws:
java.lang.Exception- If failed to sign the data
-
-