Package net.ltgt.oidc.servlet
Interface UserPrincipal
- All Superinterfaces:
Principal
- All Known Implementing Classes:
KeycloakUserPrincipal,SimpleUserPrincipal
An authenticated user.
-
Method Details
-
getName
Returns the user's name.The default implementation returns the subject from the user information in
getSessionInfo(). -
hasRole
Returns whether the user has a given role.- See Also:
-
getSessionInfo
SessionInfo getSessionInfo()
-