org.ldaptive.jaas
Class LdapPrincipal

java.lang.Object
  extended by org.ldaptive.jaas.LdapPrincipal
All Implemented Interfaces:
Serializable, Comparable<Principal>, Principal

public class LdapPrincipal
extends Object
implements Principal, Serializable, Comparable<Principal>

Provides a custom implementation for adding LDAP principals to a subject.

Version:
$Revision: 3189 $ $Date: 2016-11-01 17:21:43 -0400 (Tue, 01 Nov 2016) $
Author:
Middleware Services
See Also:
Serialized Form

Constructor Summary
LdapPrincipal(String name, LdapEntry entry)
          Creates a new ldap principal with the supplied name.
 
Method Summary
 int compareTo(Principal p)
          
 boolean equals(Object o)
          
 LdapEntry getLdapEntry()
          Returns the ldap entry for this ldap principal.
 String getName()
          
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LdapPrincipal

public LdapPrincipal(String name,
                     LdapEntry entry)
Creates a new ldap principal with the supplied name.

Parameters:
name - of this principal
entry - ldap entry associated with this principal
Method Detail

getName

public String getName()

Specified by:
getName in interface Principal

getLdapEntry

public LdapEntry getLdapEntry()
Returns the ldap entry for this ldap principal.

Returns:
ldap entry

equals

public boolean equals(Object o)

Specified by:
equals in interface Principal
Overrides:
equals in class Object

hashCode

public int hashCode()

Specified by:
hashCode in interface Principal
Overrides:
hashCode in class Object

toString

public String toString()

Specified by:
toString in interface Principal
Overrides:
toString in class Object

compareTo

public int compareTo(Principal p)

Specified by:
compareTo in interface Comparable<Principal>


Copyright © 2003-2017 Virginia Tech. All Rights Reserved.