Subject.checkRole

Asserts this Subject has the specified role by returning quietly if they do or throwing an {@link hunt.shiro.authz.AuthorizationException} if they do not.

@param roleIdentifier the application-specific role identifier (usually a role id or role name ). @throws hunt.shiro.authz.AuthorizationException if this Subject does not have the role.

interface Subject
void
checkRole

Meta