|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.core.LdapPrincipal
public final class LdapPrincipal
An alternative X500 user implementation that has access to the distinguished name of the principal as well as the String representation.
| Field Summary | |
|---|---|
static LdapPrincipal |
ANONYMOUS
the no name anonymous user whose DN is the empty String |
| Constructor Summary | |
|---|---|
LdapPrincipal()
Creates a principal for the no name anonymous user whose DN is the empty String. |
|
LdapPrincipal(org.apache.directory.shared.ldap.name.DN name,
org.apache.directory.shared.ldap.constants.AuthenticationLevel authenticationLevel)
Creates a new LDAP/X500 principal without any group associations. |
|
LdapPrincipal(org.apache.directory.shared.ldap.name.DN name,
org.apache.directory.shared.ldap.constants.AuthenticationLevel authenticationLevel,
byte[] userPassword)
Creates a new LDAP/X500 principal without any group associations. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clone the object. |
org.apache.directory.shared.ldap.constants.AuthenticationLevel |
getAuthenticationLevel()
Gets the authentication level associated with this LDAP principle. |
org.apache.directory.shared.ldap.name.DN |
getClonedName()
Gets a cloned copy of the normalized distinguished name of this principal as a DN. |
java.lang.String |
getName()
Returns the normalized distinguished name of the principal as a String. |
byte[] |
getUserPassword()
|
void |
readExternal(java.io.ObjectInput in)
|
void |
setUserPassword(byte[] userPassword)
|
java.lang.String |
toString()
Returns string representation of the normalized distinguished name of this principal. |
void |
writeExternal(java.io.ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.security.Principal |
|---|
equals, hashCode |
| Field Detail |
|---|
public static final LdapPrincipal ANONYMOUS
| Constructor Detail |
|---|
public LdapPrincipal(org.apache.directory.shared.ldap.name.DN name,
org.apache.directory.shared.ldap.constants.AuthenticationLevel authenticationLevel)
name - the normalized distinguished name of the principalauthenticationLevel - the authentication level for this principal
public LdapPrincipal(org.apache.directory.shared.ldap.name.DN name,
org.apache.directory.shared.ldap.constants.AuthenticationLevel authenticationLevel,
byte[] userPassword)
name - the normalized distinguished name of the principalauthenticationLevel - the authentication level for this principaluserPassword - The user passwordpublic LdapPrincipal()
| Method Detail |
|---|
public org.apache.directory.shared.ldap.name.DN getClonedName()
DN.
DNpublic java.lang.String getName()
getName in interface java.security.Principalpublic org.apache.directory.shared.ldap.constants.AuthenticationLevel getAuthenticationLevel()
public java.lang.String toString()
toString in interface java.security.PrincipaltoString in class java.lang.Objectpublic byte[] getUserPassword()
public void setUserPassword(byte[] userPassword)
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablein - The stream from which the LdapPrincipal is read
java.io.IOException - If the stream can't be read
java.lang.ClassNotFoundException - If the LdapPrincipal can't be createdExternalizable.readExternal(ObjectInput)
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizableout - The stream in which the LdapPrincipal will be serialized.
The password won't be written !
java.io.IOException - If the serialization failExternalizable#readExternal(ObjectInput)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||