Subject.hasRole

Returns {@code true} if this Subject has the specified role, {@code false} otherwise.

@param roleIdentifier the application-specific role identifier (usually a role id or role name). @return {@code true} if this Subject has the specified role, {@code false} otherwise.

interface Subject
bool
hasRole

Meta