java.lang.Object
|
+--java.security.Identity
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, Serialized Form
| Constructor Summary | |
protected |
Identity
copy-> new Identity()copy-> <Identity var> = new Identity();
|
|
Identity
copy-> new Identity( )copy-> <Identity var> = new Identity(<String name>);
|
|
Identity
copy-> new Identity(, )copy-> <Identity var> = new Identity(<String name>, <IdentityScope scope>);
|
| Method Summary | |
void |
addCertificate(Certificate certificate)
copy-> .addCertificate( )copy-> <Identity>.addCertificate(<Certificate certificate>);
|
Certificate[] |
certificates()
copy-> .certificates()copy-> <Certificate var>=<Identity>.certificates();
|
boolean |
equals(Object identity)
copy-> .equals( )copy-> <boolean var>=<Identity>.equals(<Object identity>);
|
String |
getInfo()
copy-> .getInfo()copy-> <String var>=<Identity>.getInfo();
|
String |
getName()
copy-> .getName()copy-> <String var>=<Identity>.getName(); |
PublicKey |
getPublicKey()
copy-> .getPublicKey()copy-> <PublicKey var>=<Identity>.getPublicKey();
|
IdentityScope |
getScope()
copy-> .getScope()copy-> <IdentityScope var>=<Identity>.getScope();
|
int |
hashCode()
copy-> .hashCode()copy-> <int var>=<Identity>.hashCode(); |
protected boolean |
identityEquals(Identity identity)
copy-> .identityEquals( )copy-> <boolean var>=<Identity>.identityEquals(<Identity identity>);
|
void |
removeCertificate(Certificate certificate)
copy-> .removeCertificate( )copy-> <Identity>.removeCertificate(<Certificate certificate>);
|
void |
setInfo(String info)
copy-> .setInfo( )copy-> <Identity>.setInfo(<String info>);
|
void |
setPublicKey(PublicKey key)
copy-> .setPublicKey( )copy-> <Identity>.setPublicKey(<PublicKey key>);
|
String |
toString()
copy-> .toString()copy-> <String var>=<Identity>.toString();
|
String |
toString(boolean detailed)
copy-> .toString( )copy-> <String var>=<Identity>.toString(<boolean detailed>);
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |