Package org.bremersee.security.core
Class UserContext.Impl
- java.lang.Object
-
- org.bremersee.security.core.UserContext.Impl
-
- All Implemented Interfaces:
Principal
,UserContext
- Enclosing interface:
- UserContext
public static class UserContext.Impl extends Object implements UserContext
The default implementation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.bremersee.security.core.UserContext
UserContext.Impl
-
-
Constructor Summary
Constructors Constructor Description Impl()
Instantiates a new user context.Impl(String userId, Collection<String> roles, Collection<String> groups)
Instantiates a new user context.Impl(org.springframework.security.core.Authentication authentication, Collection<String> groups)
Instantiates a new user context.
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bremersee.security.core.UserContext
getGroups, getName, getRoles, getUserId, hasAnyRole, hasAnyRole, hasRole, isInAnyGroup, isInAnyGroup, isInGroup, isUserIdPresent
-
-
-
-
Constructor Detail
-
Impl
public Impl()
Instantiates a new user context.
-
Impl
public Impl(org.springframework.security.core.Authentication authentication, Collection<String> groups)
Instantiates a new user context.- Parameters:
authentication
- the authenticationgroups
- the groups
-
Impl
public Impl(String userId, Collection<String> roles, Collection<String> groups)
Instantiates a new user context.- Parameters:
userId
- the user idroles
- the rolesgroups
- the groups
-
-