Class JDBCIdentitySource
- java.lang.Object
-
- io.apiman.gateway.engine.policies.config.basicauth.JDBCIdentitySource
-
public class JDBCIdentitySource 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 JDBCIdentitySource()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDatasourcePath()PasswordHashAlgorithmTypegetHashAlgorithm()StringgetJdbcUrl()StringgetPassword()StringgetQuery()StringgetRoleQuery()JDBCTypegetType()StringgetUsername()booleanisExtractRoles()voidsetDatasourcePath(String datasource)voidsetExtractRoles(boolean extractRoles)voidsetHashAlgorithm(PasswordHashAlgorithmType hashAlgorithm)voidsetJdbcUrl(String jdbcUrl)voidsetPassword(String password)voidsetQuery(String query)voidsetRoleQuery(String roleQuery)voidsetType(JDBCType type)voidsetUsername(String username)
-
-
-
Method Detail
-
getDatasourcePath
public String getDatasourcePath()
- Returns:
- the datasource
-
setDatasourcePath
public void setDatasourcePath(String datasource)
- Parameters:
datasource- the datasource to set
-
getQuery
public String getQuery()
- Returns:
- the query
-
setQuery
public void setQuery(String query)
- Parameters:
query- the query to set
-
getHashAlgorithm
public PasswordHashAlgorithmType getHashAlgorithm()
- Returns:
- the hashAlgorithm
-
setHashAlgorithm
public void setHashAlgorithm(PasswordHashAlgorithmType hashAlgorithm)
- Parameters:
hashAlgorithm- the hashAlgorithm to set
-
isExtractRoles
public boolean isExtractRoles()
- Returns:
- the extractRoles
-
setExtractRoles
public void setExtractRoles(boolean extractRoles)
- Parameters:
extractRoles- the extractRoles to set
-
getRoleQuery
public String getRoleQuery()
- Returns:
- the roleQuery
-
setRoleQuery
public void setRoleQuery(String roleQuery)
- Parameters:
roleQuery- the roleQuery to set
-
getType
public JDBCType getType()
- Returns:
- the type
-
setType
public void setType(JDBCType type)
- Parameters:
type- the type to set
-
getJdbcUrl
public String getJdbcUrl()
- Returns:
- the jdbcUrl
-
setJdbcUrl
public void setJdbcUrl(String jdbcUrl)
- Parameters:
jdbcUrl- the jdbcUrl to set
-
getUsername
public String getUsername()
- Returns:
- the username
-
setUsername
public void setUsername(String username)
- Parameters:
username- the username to set
-
getPassword
public String getPassword()
- Returns:
- the password
-
setPassword
public void setPassword(String password)
- Parameters:
password- the password to set
-
-