java.lang.Object | ||
↳ | java.security.Identity | |
↳ | java.security.Signer |
This class was deprecated
in API level 1.
Use the
java.security.cert
package
and
Principal
instead.
Signer
represents an identity (individual or corporation) that owns a
private key and the corresponding public key.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Constructs a new instance of
Signer
with the given name.
|
||||||||||
|
Constructs a new instance of
Signer
with the given name in the
given scope.
|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Constructs a new instance of
Signer
.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Returns the private key of this
Signer
.
|
||||||||||
|
Associates the specified key pair with this
Signer
.
|
||||||||||
|
Returns a string containing a concise, human-readable description of this
Signer
including its name and its scope if present.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.security.Identity
|
|||||||||||
From class
java.lang.Object
|
|||||||||||
From interface
java.security.Principal
|
Constructs a new instance of
Signer
with the given name.
name | the name of the signer. |
---|
Constructs a new instance of
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. |
---|
Associates the specified key pair with this
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. |
Returns a string containing a concise, human-readable description of this
Signer
including its name and its scope if present.
Signer
.