Top Description Fields Constructors Methods
org.h2.security.auth.impl

public Class AssignRealmNameRole

extends Object
implements UserToRolesMapper
Class Inheritance
All Implemented Interfaces
org.h2.api.UserToRolesMapper, org.h2.security.auth.Configurable
Imports
java.util.Arrays, .Collection, org.h2.api.UserToRolesMapper, org.h2.security.auth.AuthenticationException, .AuthenticationInfo, .ConfigProperties

Assign to user a role based on realm name *

Configuration parameters:

Field Summary

Modifier and TypeField and Description
private String

Constructor Summary

AccessConstructor and Description
public
public
AssignRealmNameRole(String roleNameFormat)

Method Summary

Modifier and TypeMethod and Description
public void
configure(ConfigProperties
= configuration properties
configProperties
)

Implements org.h2.security.auth.Configurable.configure.

configure the component

public Collection<String>
mapUserToRoles(AuthenticationInfo
authentication information
authenticationInfo
)

Implements org.h2.api.UserToRolesMapper.mapUserToRoles.

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

roleNameFormatback to summary
private String roleNameFormat

Constructor Detail

AssignRealmNameRoleback to summary
public AssignRealmNameRole()
AssignRealmNameRoleback to summary
public AssignRealmNameRole(String roleNameFormat)

Method Detail

configureback to summary
public void configure(ConfigProperties configProperties)

Implements org.h2.security.auth.Configurable.configure.

Doc from org.h2.security.auth.Configurable.configure.

configure the component

Parameters
configProperties:ConfigProperties

= configuration properties

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

Implements org.h2.api.UserToRolesMapper.mapUserToRoles.

Doc from org.h2.api.UserToRolesMapper.mapUserToRoles.

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

Annotations
@Override
Exceptions
AuthenticationException:
on authentication exception