java.security.KeyStore, the
java.security.cert package, and java.security.Principal.public abstract class Signer extends Identity
Signer is a subclass of Identity. It is used to store a
digital signature key with an Identity.| Modifier | Constructor and Description |
|---|---|
protected |
Signer()
Deprecated.
Trivial constructor for serialization purposes.
|
|
Signer(java.lang.String name)
Deprecated.
Constructs a new instance of
Signer with the specified
identity name. |
|
Signer(java.lang.String name,
IdentityScope scope)
Deprecated.
Constructs a new instance of
Signer with the specified
identity name and IdentityScope. |
| Modifier and Type | Method and Description |
|---|---|
PrivateKey |
getPrivateKey()
Deprecated.
Returns the private key of this
Signer. |
void |
setKeyPair(KeyPair pair)
Deprecated.
Specifies the
KeyPair associated with this Signer. |
java.lang.String |
toString()
Deprecated.
Returns a string representation of this Identity.
|
addCertificate, certificates, equals, getInfo, getName, getPublicKey, getScope, hashCode, identityEquals, removeCertificate, setInfo, setPublicKey, toStringprotected Signer()
public Signer(java.lang.String name)
Signer with the specified
identity name.name - the name of the identity to use.public Signer(java.lang.String name, IdentityScope scope) throws KeyManagementException
Signer with the specified
identity name and IdentityScope.name - the name of the the identity to use.scope - the IdentityScope to use.KeyManagementException - if a duplicate identity name exists within
scope.public PrivateKey getPrivateKey()
Signer.java.lang.SecurityException - if a SecurityManager is installed which disallows this
operation.public final void setKeyPair(KeyPair pair) throws InvalidParameterException, KeyException
KeyPair associated with this Signer.pair - the KeyPair to use.InvalidParameterException - if the key-pair is invalid.KeyException - if any another key-related error occurs.java.lang.SecurityException - if a SecurityManager is installed which disallows this
operation.