public interface LoginSecurityContext extends SecurityContext
SecurityContext implementations which can get the authenticated
Subject and/or the list of the user roles may implement this interface.| Modifier and Type | Method and Description |
|---|---|
javax.security.auth.Subject |
getSubject()
Returns the Subject representing the current authenticated user.
|
java.util.Set<java.security.Principal> |
getUserRoles()
Returns a set of Principals representing the roles
assigned to the current authenticated user Principal
|
getUserPrincipal, isUserInRolejavax.security.auth.Subject getSubject()
java.util.Set<java.security.Principal> getUserRoles()