public abstract class SignerX509EC extends Object implements Signer
Signer.SignRequestRejectedException| Constructor and Description |
|---|
SignerX509EC() |
| Modifier and Type | Method and Description |
|---|---|
Identity |
getIdentity()
Creates an 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
TODO: implement something that makes sense here and that can be used by
IdentityX509EC.
|
byte[] |
serialize()
Returns an array of bytes representing 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 - Signer.SignRequestRejectedExceptionpublic Scalar getPrivate() throws CothorityCryptoException
getPrivate in interface SignerCothorityCryptoExceptionpublic Point getPublic() throws CothorityCryptoException
getPublic in interface SignerCothorityCryptoExceptionpublic Identity getIdentity() throws CothorityCryptoException
getIdentity in interface SignerCothorityCryptoExceptionpublic byte[] serialize()
throws IOException
serialize in interface SignerIOExceptionpublic byte[] publicBytes()
new X509EncodedKeySpec(SignerX509EC.publicBytes)
public abstract PublicKey getPublicKey()
Copyright © 2018. All rights reserved.