Class JDBCRealm

  • All Implemented Interfaces:
    DigestRealm, Comparable<Realm>

    @Service
    public final class JDBCRealm
    extends DigestRealmBase
    Realm for supporting JDBC authentication.

    The JDBC realm needs the following properties in its configuration:

    • jaas-context : JAAS context name used to access LoginModule for authentication (for example JDBCRealm).
    • datasource-jndi : jndi name of datasource
    • db-user : user name to access the datasource
    • db-password : password to access the datasource
    • digest: digest mechanism
    • charset: charset encoding
    • user-table: table containing user name and password
    • group-table: table containing user name and group name
    • user-name-column: column corresponding to user name in user-table and group-table
    • password-column : column corresponding to password in user-table
    • group-name-column : column corresponding to group in group-table