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.
This class represents identities: real-world objects such as people, companies or organizations whose identities can be authenticated using their public keys. Identities may also be more abstract (or concrete) constructs, such as daemon threads or smart cards.
All Identity objects have a name and a public key. Names are
immutable. Identities may also be scoped. That is, if an Identity is
specified to have a particular scope, then the name and public
key of the Identity are unique within that scope.
An Identity also has a set of certificates (all certifying its own
public key). The Principal names specified in these certificates need
not be the same, only the key.
An Identity can be subclassed, to include postal and email
addresses, telephone numbers, images of faces and logos, and so on.
IdentityScope, Signer, Principal
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Vector | certificates
The certificates for this |
| pack-priv String | info
Generic, descriptive information about the |
| private String | name
The name for this |
| private PublicKey | publicKey
The public key for this |
| pack-priv IdentityScope | scope
References Deprecated
The scope of the IdentityScope is deprecated or references (maybe indirectly) at least one deprecated element.
Identity.
|
| private static final long | serialVersionUID
use serialVersionUID from JDK 1.1.x for interoperability |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | Identity(String
the name, IdentityScope Identity name.the scope of the scope)Identity.
References Deprecated
IdentityScope is deprecated or references (maybe indirectly) at least one deprecated element.
Constructs an |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addCertificate(Certificate
the certificate to be added. certificate)
References Deprecated
Certificate is deprecated or references (maybe indirectly) at least one deprecated element.
Adds a certificate for this |
| public Certificate[] | Returns: a copy of all the certificates for thisIdentity.
References Deprecated
Certificate is deprecated or references (maybe indirectly) at least one deprecated element.
Returns a copy of all the certificates for this |
| public final boolean | Returns: true if the objects are considered equal,
false otherwise.the object to test for equality with this
identity)Identity.Overrides java. Implements java. Tests for equality between the specified object and this
|
| pack-priv String | |
| public String | Returns: general information about thisIdentity.Returns general information previously specified for this |
| public final String | Returns: the name of thisIdentity.Implements java. Returns this identity's name. |
| public PublicKey | |
| public final IdentityScope | Returns: the scope of thisIdentity.
References Deprecated
IdentityScope is deprecated or references (maybe indirectly) at least one deprecated element.
Returns this identity's scope. |
| public int | Returns: the hashcode for thisIdentityOverrides java. Implements java. Returns the hashcode for this |
| protected boolean | Returns: true if the identities are considered equal,
false otherwise.the identity to test for equality with this
identity)identity.
References Deprecated
Identity is deprecated or references (maybe indirectly) at least one deprecated element.
Tests for equality between the specified |
| private boolean | |
| pack-priv String | |
| pack-priv String | |
| public void | removeCertificate(Certificate
the certificate to be removed. certificate)
References Deprecated
Certificate is deprecated or references (maybe indirectly) at least one deprecated element.
Removes a certificate from this |
| public void | |
| public void | |
| public String | Returns: information about thisIdentity, such as its name and the
name of its scope (if any).Overrides java. Implements java. Returns a short string describing this |
| public String | Returns: information about thisIdentity. If detailed
is true, then this method returns more information than that
provided by the toString method without any arguments.whether or not to provide detailed information. detailed)Returns a string representation of this |
| certificates | back to summary |
|---|---|
| pack-priv Vector<Certificate> certificates The certificates for this | |
| info | back to summary |
|---|---|
| pack-priv String info Generic, descriptive information about the | |
| name | back to summary |
|---|---|
| private String name The name for this | |
| publicKey | back to summary |
|---|---|
| private PublicKey publicKey The public key for this | |
| scope | back to summary |
|---|---|
| pack-priv IdentityScope scope
References Deprecated
See corresponding docs for further information. The scope of the | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID use serialVersionUID from JDK 1.1.x for interoperability | |
| Identity | back to summary |
|---|---|
| protected Identity() Constructor for serialization only. | |
| Identity | back to summary |
|---|---|
| public Identity(String name, IdentityScope scope) throws KeyManagementException
References Deprecated
See corresponding docs for further information. Constructs an
| |
| Identity | back to summary |
|---|---|
| public Identity(String name) Constructs an
| |
| addCertificate | back to summary |
|---|---|
| public void addCertificate(Certificate certificate) throws KeyManagementException
References Deprecated
See corresponding docs for further information. Adds a certificate for this
| |
| certificates | back to summary |
|---|---|
| public Certificate[] certificates()
References Deprecated
See corresponding docs for further information. Returns a copy of all the certificates for this
| |
| equals | back to summary |
|---|---|
| public final boolean equals(Object identity) Overrides java. Implements java. Tests for equality between the specified object and this
| |
| fullName | back to summary |
|---|---|
| pack-priv String fullName() Returns a parsable name for | |
| getInfo | back to summary |
|---|---|
| public String getInfo() Returns general information previously specified for this | |
| getName | back to summary |
|---|---|
| public final String getName() Implements java. Returns this identity's name.
| |
| getPublicKey | back to summary |
|---|---|
| public PublicKey getPublicKey() Returns this identity's public key.
| |
| getScope | back to summary |
|---|---|
| public final IdentityScope getScope()
References Deprecated
See corresponding docs for further information. Returns this identity's scope.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements java. Returns the hashcode for this
| |
| identityEquals | back to summary |
|---|---|
| protected boolean identityEquals(Identity identity)
References Deprecated
See corresponding docs for further information. Tests for equality between the specified | |
| keyEquals | back to summary |
|---|---|
| private boolean keyEquals(PublicKey aKey, PublicKey anotherKey) | |
| printCertificates | back to summary |
|---|---|
| pack-priv String printCertificates() | |
| printKeys | back to summary |
|---|---|
| pack-priv String printKeys() | |
| removeCertificate | back to summary |
|---|---|
| public void removeCertificate(Certificate certificate) throws KeyManagementException
References Deprecated
See corresponding docs for further information. Removes a certificate from this
| |
| setInfo | back to summary |
|---|---|
| public void setInfo(String info) Specifies a general information string for this | |
| setPublicKey | back to summary |
|---|---|
| public void setPublicKey(PublicKey key) throws KeyManagementException Sets this identity's public key. The old key and all of this identity's certificates are removed by this operation.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements java. Returns a short string describing this
| |
| toString | back to summary |
|---|---|
| public String toString(boolean detailed) Returns a string representation of this | |