public final class LdapPrincipal extends Object implements Principal, Cloneable
Constructor and Description |
---|
LdapPrincipal()
Creates a principal for the no name anonymous user whose Dn is the empty
String.
|
LdapPrincipal(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
Creates a principal for the no name anonymous user whose Dn is the empty
String.
|
LdapPrincipal(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager,
org.apache.directory.api.ldap.model.name.Dn dn,
org.apache.directory.api.ldap.model.constants.AuthenticationLevel authenticationLevel)
Creates a new LDAP/X500 principal without any group associations.
|
LdapPrincipal(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager,
org.apache.directory.api.ldap.model.name.Dn dn,
org.apache.directory.api.ldap.model.constants.AuthenticationLevel authenticationLevel,
byte[] userPassword)
Creates a new LDAP/X500 principal without any group associations.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clone the object.
|
org.apache.directory.api.ldap.model.constants.AuthenticationLevel |
getAuthenticationLevel()
Gets the authentication level associated with this LDAP principle.
|
SocketAddress |
getClientAddress() |
org.apache.directory.api.ldap.model.name.Dn |
getDn()
Gets a cloned copy of the normalized distinguished name of this
principal as a
Dn . |
String |
getName()
Returns the normalized distinguished name of the principal as a String.
|
org.apache.directory.api.ldap.model.schema.SchemaManager |
getSchemaManager() |
SocketAddress |
getServerAddress() |
byte[][] |
getUserPasswords() |
void |
setClientAddress(SocketAddress clientAddress) |
void |
setSchemaManager(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager) |
void |
setServerAddress(SocketAddress serverAddress) |
void |
setUserPassword(byte[]... userPasswords) |
String |
toString()
Returns string representation of the normalized distinguished name
of this principal.
|
public LdapPrincipal(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager, org.apache.directory.api.ldap.model.name.Dn dn, org.apache.directory.api.ldap.model.constants.AuthenticationLevel authenticationLevel)
schemaManager
- The SchemaManagerdn
- the normalized distinguished name of the principalauthenticationLevel
- the authentication level for this principalpublic LdapPrincipal(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager, org.apache.directory.api.ldap.model.name.Dn dn, org.apache.directory.api.ldap.model.constants.AuthenticationLevel authenticationLevel, byte[] userPassword)
schemaManager
- The SchemaManagerdn
- the normalized distinguished name of the principalauthenticationLevel
- the authentication level for this principaluserPassword
- The user passwordpublic LdapPrincipal()
public LdapPrincipal(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
schemaManager
- The SchemaManagerpublic org.apache.directory.api.ldap.model.name.Dn getDn()
Dn
.Dn
public String getName()
public org.apache.directory.api.ldap.model.constants.AuthenticationLevel getAuthenticationLevel()
public byte[][] getUserPasswords()
public void setUserPassword(byte[]... userPasswords)
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public org.apache.directory.api.ldap.model.schema.SchemaManager getSchemaManager()
public void setSchemaManager(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
schemaManager
- the schemaManager to setpublic SocketAddress getClientAddress()
public void setClientAddress(SocketAddress clientAddress)
clientAddress
- the clientAddress to setpublic SocketAddress getServerAddress()
public void setServerAddress(SocketAddress serverAddress)
serverAddress
- the serverAddress to setCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.