Deprecated
for removal since 1.2.
This class is deprecated and subject to removal in a future
version of Java SE. It has been replaced by
java.security.KeyStore, the java.security.cert package,
and java.security.Principal.
The management of a signer's private keys is an important and sensitive issue that should be handled by subclasses as appropriate to their intended use.
Identity
| Modifier and Type | Field and Description |
|---|---|
| private PrivateKey | privateKey
The signer's private key. |
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | |
| public | Signer(String
the identity name. name, IdentityScope the scope of the identity. scope)
References Deprecated
IdentityScope is deprecated or references (maybe indirectly) at least one deprecated element.
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public PrivateKey | Returns: this signer's private key, ornull if the private key has
not yet been set.Returns this signer's private key. |
| pack-priv String | |
| public final void | setKeyPair(KeyPair
an initialized key pair. pair)Sets the key pair (public key and private key) for this |
| public String | Returns: a string of information about theSigner.Overrides java. Implements java. Returns a string of information about the |
| privateKey | back to summary |
|---|---|
| private PrivateKey privateKey The signer's private key. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| Signer | back to summary |
|---|---|
| protected Signer() Creates a | |
| Signer | back to summary |
|---|---|
| public Signer(String name) Creates a
| |
| Signer | back to summary |
|---|---|
| public Signer(String name, IdentityScope scope) throws KeyManagementException
References Deprecated
See corresponding docs for further information. Creates a
| |
| getPrivateKey | back to summary |
|---|---|
| public PrivateKey getPrivateKey() Returns this signer's private key.
| |
| printKeys | back to summary |
|---|---|
| pack-priv String printKeys() Overrides java. | |
| setKeyPair | back to summary |
|---|---|
| public final void setKeyPair(KeyPair pair) throws InvalidParameterException, KeyException Sets the key pair (public key and private key) for this
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements java. Returns a string of information about the
| |