public class AnonymousToken extends Object implements org.apache.shiro.authc.AuthenticationToken
| Modifier and Type | Method and Description |
|---|---|
Object |
getCredentials() |
static AnonymousToken |
getInstance() |
Object |
getPrincipal() |
static boolean |
isAnonymous(org.apache.shiro.authc.AuthenticationToken token)
Efficient check for whether a token is anonymous by performing instance comparison with the singleton.
|
static boolean |
isAnonymousPrincipal(Object principal)
Efficient check for whether a principal is anonymous by performing instance comparison with the singleton.
|
public static AnonymousToken getInstance()
public static boolean isAnonymous(org.apache.shiro.authc.AuthenticationToken token)
public static boolean isAnonymousPrincipal(Object principal)
public Object getPrincipal()
getPrincipal in interface org.apache.shiro.authc.AuthenticationTokenpublic Object getCredentials()
getCredentials in interface org.apache.shiro.authc.AuthenticationTokenCopyright © 2017. All Rights Reserved.