Package org.ldaptive.jaas
Class LdapPrincipal
java.lang.Object
org.ldaptive.jaas.LdapPrincipal
- All Implemented Interfaces:
Comparable<Principal>,Principal
Provides a custom implementation for adding LDAP principals to a subject.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLdapPrincipal(String name, LdapEntry entry) Creates a new ldap principal with the supplied name. -
Method Summary
-
Field Details
-
HASH_CODE_SEED
private static final int HASH_CODE_SEEDhash code seed.- See Also:
-
ldapName
LDAP user name. -
ldapEntry
User ldap entry.
-
-
Constructor Details
-
LdapPrincipal
Creates a new ldap principal with the supplied name.- Parameters:
name- of this principalentry- ldap entry associated with this principal
-
-
Method Details
-
getName
-
getLdapEntry
Returns the ldap entry for this ldap principal.- Returns:
- ldap entry
-
equals
-
hashCode
public int hashCode() -
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<Principal>
-