IdentityScope.getIdentity

IdentityScope.getIdentity

Class Overview | Class Members | This Package | All Packages

Syntax 1
public abstract Identity getIdentity( String name )
Parameters
name
the name of the identity to be retrieved.
Returns
the identity named name, or null if there are no identities named name in this scope.
Description
Returns the identity in this scope with the specified name (if any).



Syntax 2
public Identity getIdentity( Principal principal )
Parameters
principal
the principal corresponding to the identity to be retrieved.
Returns
the identity whose name is the same as that of the principal, or null if there are no identities of the same name in this scope.
Description
Retrieves the identity whose name is the same as that of the specified principal. (Note: Identity implements Principal.)



Syntax 3
public abstract Identity getIdentity( PublicKey key )
Parameters
key
the public key for the identity to be returned.
Returns
the identity with the given key, or null if there are no identities in this scope with that key.
Description
Retrieves the identity with the specified public key.