public interface PublicKeyIdentity
Modifier and Type | Method and Description |
---|---|
java.security.KeyPair |
getKeyIdentity() |
java.util.Map.Entry<java.lang.String,byte[]> |
sign(SessionContext session,
java.lang.String algo,
byte[] data)
Proves the public key identity by signing the given data
|
java.security.KeyPair getKeyIdentity()
KeyPair
identity valuejava.util.Map.Entry<java.lang.String,byte[]> sign(SessionContext session, java.lang.String algo, byte[] data) throws java.lang.Exception
session
- The SessionContext
for calling this method - may be null
if not called within a
session contextalgo
- 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 anotherdata
- Data to signjava.lang.Exception
- If failed to sign the data