public interface IPublicKey
Modifier and Type | Method and Description |
---|---|
byte[] |
encryptMessage(byte[] input)
Encrypts a message with this public key.
|
boolean |
equals(java.lang.Object obj)
Every public key has to implement a comparison operator.
|
boolean |
verifySignature(byte[] message,
byte[] signature)
Use this public key to verify a signature.
|
boolean verifySignature(byte[] message, byte[] signature)
message
- The message which was signedsignature
- The signature of this messagebyte[] encryptMessage(byte[] input) throws java.io.IOException
input
- The message which should be encryptedjava.io.IOException
- If not enough memory is available or if a key could not be read, this exception occursboolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The object of the type AbstractCertificate
that should be compared to the current public keyObject.equals(java.lang.Object)