IdentityScope.getIdentity
Class Overview | Class Members | 
  This Package | 
All Packages
 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).
  
 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.)
  
 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.