org.acegisecurity.providers.anonymous
public class AnonymousAuthenticationToken extends AbstractAuthenticationToken implements java.io.Serializable
Authentication
.Constructor and Description |
---|
AnonymousAuthenticationToken(java.lang.String key,
java.lang.Object principal,
GrantedAuthority[] authorities)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
getCredentials()
Always returns an empty
String |
int |
getKeyHash() |
java.lang.Object |
getPrincipal()
The identity of the principal being authenticated.
|
getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toString
public AnonymousAuthenticationToken(java.lang.String key, java.lang.Object principal, GrantedAuthority[] authorities)
key
- to identify if this object made by an authorised clientprincipal
- the principal (typically a UserDetails
)authorities
- the authorities granted to the principaljava.lang.IllegalArgumentException
- if a null
was passedpublic boolean equals(java.lang.Object obj)
equals
in interface java.security.Principal
equals
in class AbstractAuthenticationToken
public java.lang.Object getCredentials()
String
getCredentials
in interface Authentication
public int getKeyHash()
public java.lang.Object getPrincipal()
Authentication
getPrincipal
in interface Authentication
Principal
being authenticatedCopyright © 2004-2014 Interface21, Inc. All Rights Reserved.