Interface PublicKeyIdentity
-
- All Known Implementing Classes:
KeyAgentIdentity
,KeyPairIdentity
public interface PublicKeyIdentity
Represents a public key identity
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.security.PublicKey
getPublicKey()
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
PublicKey
identity value
-
sign
byte[] sign(SessionContext session, byte[] data) throws java.lang.Exception
Proves the public key identity by signing the given data- Parameters:
session
- TheSessionContext
for calling this method - may benull
if 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
-
-