# Class: JDBCAuth

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

#### new JDBCAuth()

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

### Methods

#### 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 43

##### 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 71

##### 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 85

##### 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 57

##### Returns:

a reference to this for fluency

Type
  JDBCAuth