Top Description Methods
org.h2.api

public Interface UserToRolesMapper

extends Configurable
Known Direct Implementers
org.h2.security.auth.impl.AssignRealmNameRole, org.h2.security.auth.impl.StaticRolesMapper
Imports
java.util.Collection, org.h2.security.auth.AuthenticationException, .AuthenticationInfo, .Configurable

A class that implement this interface can be used during authentication to map external users to database roles.

This feature is experimental and subject to change

Method Summary

Modifier and TypeMethod and Description
public Collection<String>

Returns:

list of roles to be assigned to the user temporary
mapUserToRoles
(AuthenticationInfo
authentication information
authenticationInfo
)

Map user identified by authentication info to a set of granted roles.

Inherited from org.h2.security.auth.Configurable:
configure

Method Detail

mapUserToRolesback to summary
public Collection<String> mapUserToRoles(AuthenticationInfo authenticationInfo) throws AuthenticationException

Map user identified by authentication info to a set of granted roles.

Parameters
authenticationInfo:AuthenticationInfo

authentication information

Returns:Collection<String>

list of roles to be assigned to the user temporary

Exceptions
AuthenticationException:
on authentication exception