public class AnonymousToken
extends java.lang.Object
implements org.apache.shiro.authc.AuthenticationToken
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getCredentials() |
static AnonymousToken |
getInstance() |
java.lang.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(java.lang.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(java.lang.Object principal)
public java.lang.Object getPrincipal()
getPrincipal in interface org.apache.shiro.authc.AuthenticationTokenpublic java.lang.Object getCredentials()
getCredentials in interface org.apache.shiro.authc.AuthenticationTokenCopyright © 2020. All Rights Reserved.