public class ECCPrivateKey extends java.lang.Object implements IPrivateKey
| Constructor and Description |
|---|
ECCPrivateKey(byte[] privateKey)
Creates a new ECC private key.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
createSignature(byte[] message)
Creates a cryptographic signature (with this private key) of a message.
|
byte[] |
decryptMessage(byte[] message)
Decrypts an encrypted message (with this private key).
|
boolean |
equals(java.lang.Object obj)
Every private key has to implement a comparison operator.
|
public ECCPrivateKey(byte[] privateKey)
throws java.io.IOException
privateKey - The private key parameters which are used for signing. This ECPrivateKeyParameters-object is created using the Bouncycastle library.java.io.IOExceptionpublic byte[] createSignature(byte[] message)
IPrivateKeycreateSignature in interface IPrivateKeymessage - The message which should be signedpublic byte[] decryptMessage(byte[] message)
IPrivateKeydecryptMessage in interface IPrivateKeymessage - The encrypted message, which should be decryptedpublic boolean equals(java.lang.Object obj)
IPrivateKeyequals in interface IPrivateKeyequals in class java.lang.Objectobj - The object of the type AbstractCertificate that should be compared to the current private keyObject.equals(java.lang.Object)