java.security.cert package
and Principal instead.@Deprecated public abstract class Signer extends Identity
Signer represents an identity (individual or corporation) that owns a
private key and the corresponding public key.| Modifier | Constructor and Description |
|---|---|
protected |
Signer()
Deprecated.
Constructs a new instance of
Signer. |
|
Signer(String name)
Deprecated.
Constructs a new instance of
Signer with the given name. |
|
Signer(String name,
IdentityScope scope)
Deprecated.
Constructs a new instance of
Signer with the given name in the
given scope. |
| Modifier and Type | Method and Description |
|---|---|
PrivateKey |
getPrivateKey()
Deprecated.
Returns the private key of this
Signer. |
void |
setKeyPair(KeyPair pair)
Deprecated.
Associates the specified key pair with this
Signer. |
String |
toString()
Deprecated.
Returns a string containing a concise, human-readable description of this
Signer including its name and its scope if present. |
addCertificate, certificates, equals, getInfo, getName, getPublicKey, getScope, hashCode, identityEquals, removeCertificate, setInfo, setPublicKey, toStringprotected Signer()
Signer.public Signer(String name)
Signer with the given name.name - the name of the signer.public Signer(String name, IdentityScope scope) throws KeyManagementException
Signer with the given name in the
given scope.name - the name of the signer.scope - the scope of the signer.KeyManagementException - if a signer with the specified name already exists in the
provided scope.public PrivateKey getPrivateKey()
Signer.public final void setKeyPair(KeyPair pair) throws InvalidParameterException, KeyException
Signer.pair - the key pair to associate with this Signer.InvalidParameterException - if the key pair is invalid.KeyException - if any other key related problem occurs.public String toString()
Signer including its name and its scope if present.