Authorizer.checkRole

Asserts the corresponding Subject/user has the specified role by returning quietly if they do or throwing an {@link AuthorizationException} if they do not.

@param subjectPrincipal the application-specific subject/user identifier. @param roleIdentifier the application-specific role identifier (usually a role id or role name ). @throws AuthorizationException if the user does not have the role.

interface Authorizer
void
checkRole

Meta