public class DelegatingAuthenticator extends AbstractAuthenticator
LOG
Modifier | Constructor and Description |
---|---|
|
DelegatingAuthenticator()
Creates a new instance.
|
protected |
DelegatingAuthenticator(org.apache.directory.api.ldap.model.constants.AuthenticationLevel type,
org.apache.directory.api.ldap.model.name.Dn baseDn)
Creates a new instance, for a specific authentication level.
|
|
DelegatingAuthenticator(org.apache.directory.api.ldap.model.name.Dn baseDn)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
LdapPrincipal |
authenticate(BindOperationContext bindContext)
Performs authentication and returns the principal if succeeded.
|
void |
checkPwdPolicy(org.apache.directory.api.ldap.model.entry.Entry userEntry)
We don't handle any password policy when using a delegated authentication
|
String |
getDelegateBaseDn() |
String |
getDelegateHost() |
int |
getDelegatePort() |
String |
getDelegateSslTrustManagerFQCN() |
String |
getDelegateTlsTrustManagerFQCN() |
void |
invalidateCache(org.apache.directory.api.ldap.model.name.Dn bindDn)
We don't handle any cache when using a delegated authentication
|
boolean |
isDelegateSsl() |
boolean |
isDelegateTls() |
void |
setDelegateHost(String delegateHost) |
void |
setDelegatePort(int delegatePort) |
void |
setDelegateSsl(boolean delegateSsl) |
void |
setDelegateSslTrustManagerFQCN(String delegateSslTrustManagerFQCN) |
void |
setDelegateTls(boolean delegateTls) |
void |
setDelegateTlsTrustManagerFQCN(String delegateTlsTrustManagerFQCN) |
destroy, doDestroy, doInit, getAuthenticatorType, getBaseDn, getDirectoryService, init, isValid, setBaseDn
public DelegatingAuthenticator()
public DelegatingAuthenticator(org.apache.directory.api.ldap.model.name.Dn baseDn)
baseDn
- The base DnAbstractAuthenticator
protected DelegatingAuthenticator(org.apache.directory.api.ldap.model.constants.AuthenticationLevel type, org.apache.directory.api.ldap.model.name.Dn baseDn)
type
- The relevant AuthenticationLevelbaseDn
- The base DnAbstractAuthenticator
public String getDelegateHost()
public void setDelegateHost(String delegateHost)
delegateHost
- the delegateHost to setpublic int getDelegatePort()
public void setDelegatePort(int delegatePort)
delegatePort
- the delegatePort to setpublic boolean isDelegateSsl()
public void setDelegateSsl(boolean delegateSsl)
delegateSsl
- the delegateSsl to setpublic String getDelegateBaseDn()
public boolean isDelegateTls()
public void setDelegateTls(boolean delegateTls)
delegateTls
- the delegateTls to setpublic String getDelegateSslTrustManagerFQCN()
public void setDelegateSslTrustManagerFQCN(String delegateSslTrustManagerFQCN)
delegateSslTrustManagerFQCN
- the delegateSslTrustManagerFQCN to setpublic String getDelegateTlsTrustManagerFQCN()
public void setDelegateTlsTrustManagerFQCN(String delegateTlsTrustManagerFQCN)
delegateTlsTrustManagerFQCN
- the delegateTlsTrustManagerFQCN to setpublic LdapPrincipal authenticate(BindOperationContext bindContext) throws org.apache.directory.api.ldap.model.exception.LdapException
bindContext
- The Bind contextorg.apache.directory.api.ldap.model.exception.LdapException
- If the authentication failedpublic void checkPwdPolicy(org.apache.directory.api.ldap.model.entry.Entry userEntry) throws org.apache.directory.api.ldap.model.exception.LdapException
checkPwdPolicy
in interface Authenticator
checkPwdPolicy
in class AbstractAuthenticator
userEntry
- the user entry to be checked for authenticationorg.apache.directory.api.ldap.model.exception.LdapException
- If the password policy is incorrectpublic void invalidateCache(org.apache.directory.api.ldap.model.name.Dn bindDn)
invalidateCache
in interface Authenticator
invalidateCache
in class AbstractAuthenticator
bindDn
- the already normalized distinguished name of the bind principalCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.