|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.vt.middleware.ldap.props.AbstractPropertyConfig
edu.vt.middleware.ldap.LdapConfig
edu.vt.middleware.ldap.auth.AuthenticatorConfig
public class AuthenticatorConfig
AuthenticatorConfig contains all the configuration data that the
Authenticator needs to control authentication.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class edu.vt.middleware.ldap.LdapConfig |
|---|
LdapConfig.SearchScope |
| Field Summary | |
|---|---|
static String |
PROPERTIES_DOMAIN
Domain to look for ldap properties in, value is "edu.vt.middleware.ldap.auth.". |
| Fields inherited from class edu.vt.middleware.ldap.props.AbstractPropertyConfig |
|---|
logger |
| Constructor Summary | |
|---|---|
AuthenticatorConfig()
Default constructor. |
|
AuthenticatorConfig(String ldapUrl,
String baseDn)
This will create a new AuthenticatorConfig with the supplied
ldap url and base Strings. |
|
| Method Summary | |
|---|---|
static AuthenticatorConfig |
createFromProperties(InputStream is)
Create an instance of this class initialized with properties from the input stream. |
boolean |
getAllowMultipleDns()
This returns the allowMultipleDns of the Authenticator. |
AuthenticationHandler |
getAuthenticationHandler()
This returns the authentication handler. |
AuthenticationResultHandler[] |
getAuthenticationResultHandlers()
This returns the handlers to use for processing authentications. |
String |
getAuthorizationFilter()
This returns the filter used to authorize users. |
Object[] |
getAuthorizationFilterArgs()
This returns the filter arguments used to authorize users. |
AuthorizationHandler[] |
getAuthorizationHandlers()
This returns the handlers to use for processing authorization. |
boolean |
getConstructDn()
This returns the constructDn of the Authenticator. |
Object |
getCredential()
This returns the credential of the Authenticator. |
DnResolver |
getDnResolver()
This returns the DN resolver. |
String |
getPropertiesDomain()
This returns the properties domain for this property config. |
boolean |
getSubtreeSearch()
This returns the subtreeSearch of the Authenticator. |
String |
getUser()
This returns the user of the Authenticator. |
String[] |
getUserField()
This returns the user field(s) of the Authenticator. |
String |
getUserFilter()
This returns the filter used to search for the user. |
Object[] |
getUserFilterArgs()
This returns the filter arguments used to search for the user. |
boolean |
hasEnvironmentProperty(String name)
This returns whether the supplied property exists. |
void |
setAllowMultipleDns(boolean allowMultipleDns)
This sets the allowMultipleDns for the Authentication. |
void |
setAuthenticationHandler(AuthenticationHandler handler)
This sets the authentication handler. |
void |
setAuthenticationResultHandlers(AuthenticationResultHandler[] handlers)
This sets the handlers for processing authentications. |
void |
setAuthorizationFilter(String authorizationFilter)
This sets the filter used to authorize users. |
void |
setAuthorizationFilterArgs(Object[] authorizationFilterArgs)
This sets the filter arguments used to authorize users. |
void |
setAuthorizationHandlers(AuthorizationHandler[] handlers)
This sets the handlers for processing authorization. |
void |
setConstructDn(boolean constructDn)
This sets the constructDn for the Authenticator. |
void |
setCredential(Object credential)
This sets the credential for the Authenticator to use for
authentication. |
void |
setDnResolver(DnResolver resolver)
This sets the DN resolver. |
void |
setEnvironmentProperties(String name,
String value)
This adds environment properties to this object. If name or value is null, then this method does nothing. |
void |
setSubtreeSearch(boolean subtreeSearch)
This sets the subtreeSearch for the Authenticator. |
void |
setUser(String user)
This sets the username for the Authenticator to use for
authentication. |
void |
setUserField(String[] userField)
This sets the user fields for the Authenticator. |
void |
setUserFilter(String userFilter)
This sets the filter used to search for users. |
void |
setUserFilterArgs(Object[] userFilterArgs)
This sets the filter arguments used to search for users. |
| Methods inherited from class edu.vt.middleware.ldap.props.AbstractPropertyConfig |
|---|
checkImmutable, checkStringInput, makeImmutable, setEnvironmentProperties, setEnvironmentProperties |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPERTIES_DOMAIN
| Constructor Detail |
|---|
public AuthenticatorConfig()
public AuthenticatorConfig(String ldapUrl,
String baseDn)
AuthenticatorConfig with the supplied
ldap url and base Strings.
ldapUrl - String LDAP URLbaseDn - String LDAP base DN| Method Detail |
|---|
public String[] getUserField()
Authenticator.
String[] - user field name(s)public String getUserFilter()
String - filterpublic Object[] getUserFilterArgs()
Object[] - filter argumentspublic String getUser()
Authenticator.
String - user namepublic Object getCredential()
Authenticator.
Object - user credentialpublic String getAuthorizationFilter()
String - filterpublic Object[] getAuthorizationFilterArgs()
Object[] - filter argumentspublic boolean getConstructDn()
Authenticator.
boolean - whether the DN will be constructedpublic boolean getAllowMultipleDns()
Authenticator.
boolean - whether an exception will be thrown if
multiple DNs are foundpublic boolean getSubtreeSearch()
Authenticator.
boolean - whether the DN will be searched for over
the entire basepublic DnResolver getDnResolver()
DnResolverpublic AuthenticationHandler getAuthenticationHandler()
AuthenticationHandlerpublic AuthenticationResultHandler[] getAuthenticationResultHandlers()
AuthenticationResultHandler[]public AuthorizationHandler[] getAuthorizationHandlers()
AuthorizationHandler[]public void setUserField(String[] userField)
Authenticator. The user
field is used to lookup a user's dn.
userField - String[] usernamepublic void setUserFilter(String userFilter)
userFilter - Stringpublic void setUserFilterArgs(Object[] userFilterArgs)
userFilterArgs - Object[]public void setUser(String user)
Authenticator to use for
authentication.
user - String usernamepublic void setCredential(Object credential)
Authenticator to use for
authentication.
credential - Objectpublic void setAuthorizationFilter(String authorizationFilter)
authorizationFilter - Stringpublic void setAuthorizationFilterArgs(Object[] authorizationFilterArgs)
authorizationFilterArgs - Object[]public void setConstructDn(boolean constructDn)
Authenticator. If true, the
dnResolver is set to ConstructDnResolver. If false, the
dnResolver is set to SearchDnResolver.
constructDn - booleanpublic void setAllowMultipleDns(boolean allowMultipleDns)
Authentication. If
false an exception will be thrown if Authenticator.getDn(String)
finds more than one DN matching it's filter. Otherwise the first DN found
is returned.
allowMultipleDns - booleanpublic void setSubtreeSearch(boolean subtreeSearch)
Authenticator. If true,
the DN used for authenticating will be searched for over the entire LdapConfig.getBaseDn(). Otherwise the DN will be search for in the LdapConfig.getBaseDn() context.
subtreeSearch - booleanpublic void setDnResolver(DnResolver resolver)
resolver - DnResolverpublic void setAuthenticationHandler(AuthenticationHandler handler)
handler - AuthenticationHandlerpublic void setAuthenticationResultHandlers(AuthenticationResultHandler[] handlers)
handlers - AuthenticationResultHandler[]public void setAuthorizationHandlers(AuthorizationHandler[] handlers)
handlers - AuthorizationHandler[]public String getPropertiesDomain()
getPropertiesDomain in interface PropertyConfiggetPropertiesDomain in class LdapConfigString properties domain
public void setEnvironmentProperties(String name,
String value)
setEnvironmentProperties in interface PropertyConfigsetEnvironmentProperties in class LdapConfigname - String property namevalue - String property valuepublic boolean hasEnvironmentProperty(String name)
hasEnvironmentProperty in interface PropertyConfighasEnvironmentProperty in class LdapConfigname - String to check
boolean whether the supplied property existspublic static AuthenticatorConfig createFromProperties(InputStream is)
is - to load properties from
AuthenticatorConfig initialized ldap pool config
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||