Package org.fcrepo.auth.common
Class ContainerAuthToken
- java.lang.Object
-
- org.fcrepo.auth.common.ContainerAuthToken
-
- All Implemented Interfaces:
Serializable
,org.apache.shiro.authc.AuthenticationToken
public class ContainerAuthToken extends Object implements org.apache.shiro.authc.AuthenticationToken
- Author:
- peichman
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
AUTHORIZED
-
Constructor Summary
Constructors Constructor Description ContainerAuthToken(String servletUsername, Set<String> servletRoleNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getCredentials()
This token represents a user who was already authenticated by the servlet container, so return a constant credentials string.Object
getPrincipal()
Set<ContainerRolesPrincipalProvider.ContainerRolesPrincipal>
getRoles()
-
-
-
Field Detail
-
AUTHORIZED
public static final String AUTHORIZED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ContainerAuthToken
public ContainerAuthToken(String servletUsername, Set<String> servletRoleNames)
- Parameters:
servletUsername
- username returned from servlet container authenticationservletRoleNames
- roles returned from servlet container authentication
-
-
Method Detail
-
getPrincipal
public Object getPrincipal()
- Specified by:
getPrincipal
in interfaceorg.apache.shiro.authc.AuthenticationToken
-
getCredentials
public Object getCredentials()
This token represents a user who was already authenticated by the servlet container, so return a constant credentials string.- Specified by:
getCredentials
in interfaceorg.apache.shiro.authc.AuthenticationToken
-
getRoles
public Set<ContainerRolesPrincipalProvider.ContainerRolesPrincipal> getRoles()
- Returns:
- set of principals
-
-