# Class: JDBCAuth

## vertx-auth-jdbc-js/jdbc_auth~ JDBCAuth

#### new JDBCAuth()

Source:
  - vertx-auth-jdbc-js/jdbc_auth.js, line 31

### Methods

#### authenticate(arg0, arg1)

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | Object |
`arg1` | function |

Source:
  - vertx-auth-jdbc-js/jdbc_auth.js, line 43

#### setAuthenticationQuery(authenticationQuery) → {JDBCAuth}

Set the authentication query to use. Use this if you want to override the default authentication query.

##### Parameters:

Name | Type | Description
--- | --- | ---
`authenticationQuery` | string | the authentication query

Source:
  - vertx-auth-jdbc-js/jdbc_auth.js, line 63

##### Returns:

a reference to this for fluency

Type
  JDBCAuth

#### setPermissionsQuery(permissionsQuery) → {JDBCAuth}

Set the permissions query to use. Use this if you want to override the default permissions query.

##### Parameters:

Name | Type | Description
--- | --- | ---
`permissionsQuery` | string | the permissions query

Source:
  - vertx-auth-jdbc-js/jdbc_auth.js, line 91

##### Returns:

a reference to this for fluency

Type
  JDBCAuth

#### setRolePrefix(rolePrefix) → {JDBCAuth}

Set the role prefix to distinguish from permissions when checking for isPermitted requests.

##### Parameters:

Name | Type | Description
--- | --- | ---
`rolePrefix` | string | a Prefix e.g.: "role:"

Source:
  - vertx-auth-jdbc-js/jdbc_auth.js, line 105

##### Returns:

a reference to this for fluency

Type
  JDBCAuth

#### setRolesQuery(rolesQuery) → {JDBCAuth}

Set the roles query to use. Use this if you want to override the default roles query.

##### Parameters:

Name | Type | Description
--- | --- | ---
`rolesQuery` | string | the roles query

Source:
  - vertx-auth-jdbc-js/jdbc_auth.js, line 77

##### Returns:

a reference to this for fluency

Type
  JDBCAuth