public abstract class SignerX509EC extends Object implements Signer
Signer.SignRequestRejectedException| Constructor and Description |
|---|
SignerX509EC() |
| Modifier and Type | Method and Description |
|---|---|
Identity |
getIdentity()
Returns the identity of the signer.
|
Scalar |
getPrivate()
Returns the private key of the signer, or throws a CothorityCryptoException.
|
Point |
getPublic()
Returns the public key of the signer, or throws a CothorityCryptoException.
|
abstract PublicKey |
getPublicKey()
Return public key as a class
|
byte[] |
publicBytes()
Returns the specific public key representation of this signer
|
byte[] |
serialize()
Returns an array of bytes repesenting the signer.
|
abstract byte[] |
sign(byte[] msg)
Signs the sha256 hash of the message.
|
public abstract byte[] sign(byte[] msg)
throws Signer.SignRequestRejectedException
sign in interface Signermsg - the messageSigner.SignRequestRejectedException - if the signature request is rejectedpublic Scalar getPrivate()
getPrivate in interface Signerpublic Point getPublic()
public Identity getIdentity()
getIdentity in interface Signerpublic byte[] serialize()
throws IOException
serialize in interface SignerIOException - if something went wrong with I/Opublic byte[] publicBytes()
new X509EncodedKeySpec(SignerX509EC.publicBytes)
public abstract PublicKey getPublicKey()
Copyright © 2019. All rights reserved.