org.apache.directory.server.core.authn
Class LdapPrincipal

java.lang.Object
  extended by org.apache.directory.server.core.authn.LdapPrincipal
All Implemented Interfaces:
java.io.Serializable, java.security.Principal

public final class LdapPrincipal
extends java.lang.Object
implements java.security.Principal, java.io.Serializable

An alternative X500 user implementation that has access to the distinguished name of the principal as well as the String representation.

Version:
$Rev: 434579 $
Author:
Apache Directory Project
See Also:
Serialized Form

Field Summary
static LdapPrincipal ANONYMOUS
          the no name anonymous user whose DN is the empty String
 
Method Summary
 org.apache.directory.shared.ldap.aci.AuthenticationLevel getAuthenticationLevel()
          Gets the authentication level associated with this LDAP principle.
 org.apache.directory.shared.ldap.name.LdapDN getJndiName()
          Gets a cloned copy of the normalized distinguished name of this principal as a JNDI Name.
 java.lang.String getName()
          Returns the normalized distinguished name of the principal as a String.
 java.lang.String toString()
          Returns string representation of the normalized distinguished name of this principal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.security.Principal
equals, hashCode
 

Field Detail

ANONYMOUS

public static final LdapPrincipal ANONYMOUS
the no name anonymous user whose DN is the empty String

Method Detail

getJndiName

public org.apache.directory.shared.ldap.name.LdapDN getJndiName()
Gets a cloned copy of the normalized distinguished name of this principal as a JNDI Name.

Returns:
the normalized distinguished name of the principal as a JNDI Name

getName

public java.lang.String getName()
Returns the normalized distinguished name of the principal as a String.

Specified by:
getName in interface java.security.Principal

getAuthenticationLevel

public org.apache.directory.shared.ldap.aci.AuthenticationLevel getAuthenticationLevel()
Gets the authentication level associated with this LDAP principle.

Returns:
the authentication level

toString

public java.lang.String toString()
Returns string representation of the normalized distinguished name of this principal.

Specified by:
toString in interface java.security.Principal
Overrides:
toString in class java.lang.Object


Copyright © 2003-2012 Apache Software Foundation. All Rights Reserved.