public class ApiKeyAuthenticationInfo
extends java.lang.Object
implements org.apache.shiro.authc.AuthenticationInfo
AuthenticationInfo implementation for ApiKeys. Since API keys do not have credentials (the presence
of a valid ApiKey in the request constitutes authentication) the principal's ID is also used as the credentials.| Constructor and Description |
|---|
ApiKeyAuthenticationInfo(java.lang.String authenticationId,
ApiKey apiKey,
java.lang.String realm) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getCredentials() |
org.apache.shiro.subject.PrincipalCollection |
getPrincipals() |
int |
hashCode() |
java.lang.String |
toString() |
public ApiKeyAuthenticationInfo(java.lang.String authenticationId,
ApiKey apiKey,
java.lang.String realm)
public org.apache.shiro.subject.PrincipalCollection getPrincipals()
getPrincipals in interface org.apache.shiro.authc.AuthenticationInfopublic java.lang.String getCredentials()
getCredentials in interface org.apache.shiro.authc.AuthenticationInfopublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2020. All Rights Reserved.