public class ContainerAuthToken extends Object implements org.apache.shiro.authc.AuthenticationToken
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTHORIZED |
| Constructor and Description |
|---|
ContainerAuthToken(String servletUsername,
Set<String> servletRoleNames) |
| Modifier and Type | Method and 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() |
public static final String AUTHORIZED
public ContainerAuthToken(String servletUsername, Set<String> servletRoleNames)
servletUsername - username returned from servlet container authenticationservletRoleNames - roles returned from servlet container authenticationpublic Object getPrincipal()
getPrincipal in interface org.apache.shiro.authc.AuthenticationTokenpublic Object getCredentials()
getCredentials in interface org.apache.shiro.authc.AuthenticationTokenpublic Set<ContainerRolesPrincipalProvider.ContainerRolesPrincipal> getRoles()
Copyright © 2013–2019 DuraSpace, Inc.. All rights reserved.