Class LDAPIdentitySource
- java.lang.Object
-
- io.apiman.gateway.engine.policies.config.basicauth.LDAPIdentitySource
-
public class LDAPIdentitySource extends Object
Information about the LDAP server to use to authenticate an inbound user. The DN pattern can be (for example) of the following form: cn=${username},dc=${X-Authentication-Domain},dc=org Supported properties for interpolation/replacement in the pattern include the BASIC authentication "username" and any header found in the inbound API request.- Author:
- eric.wittmann@redhat.com
-
-
Constructor Summary
Constructors Constructor Description LDAPIdentitySource()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LDAPBindAsTypegetBindAs()LDAPCredentialsgetCredentials()StringgetDnPattern()StringgetMembershipAttribute()StringgetRolenameAttribute()URIgetUri()StringgetUrl()LDAPUserSearchgetUserSearch()booleanisExtractRoles()voidsetBindAs(LDAPBindAsType bindAs)voidsetCredentials(LDAPCredentials credentials)voidsetDnPattern(String dnPattern)voidsetExtractRoles(boolean extractRoles)voidsetMembershipAttribute(String membershipAttribute)voidsetRolenameAttribute(String rolenameAttribute)voidsetUrl(String url)voidsetUserSearch(LDAPUserSearch userSearch)
-
-
-
Method Detail
-
getDnPattern
public String getDnPattern()
- Returns:
- the dnPattern
-
setDnPattern
public void setDnPattern(String dnPattern)
- Parameters:
dnPattern- the dnPattern to set
-
getUrl
public String getUrl()
- Returns:
- the url
-
getUri
public URI getUri()
- Returns:
- the url
-
setUrl
public void setUrl(String url)
- Parameters:
url- the url to set
-
getBindAs
public LDAPBindAsType getBindAs()
- Returns:
- the bindAs
-
setBindAs
public void setBindAs(LDAPBindAsType bindAs)
- Parameters:
bindAs- the bindAs to set
-
getCredentials
public LDAPCredentials getCredentials()
- Returns:
- the credentials
-
setCredentials
public void setCredentials(LDAPCredentials credentials)
- Parameters:
credentials- the credentials to set
-
getUserSearch
public LDAPUserSearch getUserSearch()
- Returns:
- the userSearch
-
setUserSearch
public void setUserSearch(LDAPUserSearch userSearch)
- Parameters:
userSearch- the userSearch to set
-
isExtractRoles
public boolean isExtractRoles()
- Returns:
- the extractRoles
-
setExtractRoles
public void setExtractRoles(boolean extractRoles)
- Parameters:
extractRoles- the extractRoles to set
-
getMembershipAttribute
public String getMembershipAttribute()
- Returns:
- the membershipAttribute
-
setMembershipAttribute
public void setMembershipAttribute(String membershipAttribute)
- Parameters:
membershipAttribute- the membershipAttribute to set
-
getRolenameAttribute
public String getRolenameAttribute()
- Returns:
- the rolenameAttribute
-
setRolenameAttribute
public void setRolenameAttribute(String rolenameAttribute)
- Parameters:
rolenameAttribute- the rolenameAttribute to set
-
-