Package io.jmix.restds.auth
Class RestAuthenticationToken
java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
io.jmix.restds.auth.RestAuthenticationToken
- All Implemented Interfaces:
Serializable
,Principal
,org.springframework.security.core.Authentication
,org.springframework.security.core.CredentialsContainer
public class RestAuthenticationToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
Authentication
object for authenticating through the REST DataStore
with Resource Owner Password Credentials Grant.- See Also:
-
Constructor Summary
ConstructorDescriptionRestAuthenticationToken
(Object principal, Object credentials) RestAuthenticationToken
(Object principal, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) -
Method Summary
Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
equals, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setDetails, toString
-
Constructor Details
-
RestAuthenticationToken
-
RestAuthenticationToken
public RestAuthenticationToken(Object principal, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
-
-
Method Details
-
getCredentials
-
getPrincipal
-
setAuthenticated
- Specified by:
setAuthenticated
in interfaceorg.springframework.security.core.Authentication
- Overrides:
setAuthenticated
in classorg.springframework.security.authentication.AbstractAuthenticationToken
- Throws:
IllegalArgumentException
-
eraseCredentials
public void eraseCredentials()- Specified by:
eraseCredentials
in interfaceorg.springframework.security.core.CredentialsContainer
- Overrides:
eraseCredentials
in classorg.springframework.security.authentication.AbstractAuthenticationToken
-