Interface PublicKeyIdentity
-
- All Known Implementing Classes:
KeyAgentIdentity
,KeyPairIdentity
public interface PublicKeyIdentity
Represents a public key identity- Author:
- Apache MINA SSHD Project
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PublicKey
getPublicKey()
byte[]
sign(SessionContext session, byte[] data)
Proves the public key identity by signing the given data
-
-
-
Method Detail
-
sign
byte[] sign(SessionContext session, byte[] data) throws 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:
Exception
- If failed to sign the data
-
-