Package org.h2.api
Interface UserToRolesMapper
-
- All Superinterfaces:
org.h2.security.auth.Configurable
public interface UserToRolesMapper extends org.h2.security.auth.ConfigurableA 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<java.lang.String>mapUserToRoles(org.h2.security.auth.AuthenticationInfo authenticationInfo)Map user identified by authentication info to a set of granted roles.
-
-
-
Method Detail
-
mapUserToRoles
java.util.Collection<java.lang.String> mapUserToRoles(org.h2.security.auth.AuthenticationInfo authenticationInfo) throws org.h2.security.auth.AuthenticationExceptionMap user identified by authentication info to a set of granted roles.- Parameters:
authenticationInfo- authentication information- Returns:
- list of roles to be assigned to the user temporary
- Throws:
org.h2.security.auth.AuthenticationException- on authentication exception
-
-