public class ApiKeyAuthenticationToken
extends java.lang.Object
implements org.apache.shiro.authc.AuthenticationToken
AuthenticationToken implementation for ApiKeys. Since API keys do not have credentials (the presence
of a valid ApiKey in the request constitutes authentication) the ID is also used as the credentials.| Constructor and Description |
|---|
ApiKeyAuthenticationToken(java.lang.String apiKey) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCredentials() |
java.lang.String |
getPrincipal() |
java.lang.String |
toString() |
public ApiKeyAuthenticationToken(java.lang.String apiKey)
public java.lang.String getPrincipal()
getPrincipal in interface org.apache.shiro.authc.AuthenticationTokenpublic java.lang.String getCredentials()
getCredentials in interface org.apache.shiro.authc.AuthenticationTokenpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018. All Rights Reserved.