Class AnonymousAuthenticationToken
java.lang.Object
com.codename1.backend.security.AbstractAuthenticationToken
com.codename1.backend.security.AnonymousAuthenticationToken
- All Implemented Interfaces:
Authentication
Who a request is from when nobody signed in: a principal called
anonymousUser holding ROLE_ANONYMOUS, so authorization rules always have
someone to ask about. authenticated() does not accept it.-
Constructor Summary
ConstructorsConstructorDescriptionAnonymousAuthenticationToken(String key, Object principal, Collection<? extends GrantedAuthority> authorities) -
Method Summary
Modifier and TypeMethodDescriptionWhat proves the principal is who it says: a password, usually, and null once it has been checked.intThe hash of the key the token was made with.The identity: a username before authentication, and afterwards usually theUserDetailsit was resolved to.Methods inherited from class AbstractAuthenticationToken
eraseCredentials, getAuthorities, getDetails, getName, isAuthenticated, setAuthenticated, setDetails, toString
-
Constructor Details
-
AnonymousAuthenticationToken
public AnonymousAuthenticationToken(String key, Object principal, Collection<? extends GrantedAuthority> authorities) - Parameters:
key- what identifies the filter that made the token
-
-
Method Details
-
getKeyHash
public int getKeyHash()The hash of the key the token was made with. -
getCredentials
Description copied from interface:AuthenticationWhat proves the principal is who it says: a password, usually, and null once it has been checked. -
getPrincipal
Description copied from interface:AuthenticationThe identity: a username before authentication, and afterwards usually theUserDetailsit was resolved to.
-