Package org.ldaptive.jaas
Class LdapDnPrincipal
java.lang.Object
org.ldaptive.jaas.LdapDnPrincipal
- All Implemented Interfaces:
Serializable
,Comparable<Principal>
,Principal
public class LdapDnPrincipal
extends Object
implements Principal, Serializable, Comparable<Principal>
Provides a custom implementation for adding LDAP principals to a subject.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLdapDnPrincipal
(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:
-
serialVersionUID
private static final long serialVersionUIDserial version uid.- See Also:
-
ldapDn
LDAP user name. -
ldapEntry
User ldap entry.
-
-
Constructor Details
-
LdapDnPrincipal
Creates a new ldap principal with the supplied name.- Parameters:
name
- of an ldap DNentry
- 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:
compareTo
in interfaceComparable<Principal>
-