Package org.activecomponents.udp
Interface IKeyVerifier
-
- All Known Implementing Classes:
NullKeyVerifier
public interface IKeyVerifier
Class verifying the authenticity of remote public keys.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
sign(byte[] input)
Signs the public key.boolean
verify(byte[] input, byte[] signature)
Verifies a signed input..
-
-
-
Method Detail
-
sign
byte[] sign(byte[] input)
Signs the public key.- Parameters:
input
- Raw data of the key.- Returns:
- Signature of key.
-
verify
boolean verify(byte[] input, byte[] signature)
Verifies a signed input..- Parameters:
input
- Raw data sent by remote.signature
- The signature.- Returns:
- True, if the input could be verified, false if not.
-
-