Package org.molgenis.security.token
Class RestAuthenticationToken
- java.lang.Object
-
- org.springframework.security.authentication.AbstractAuthenticationToken
-
- org.springframework.security.authentication.UsernamePasswordAuthenticationToken
-
- org.molgenis.security.token.RestAuthenticationToken
-
- All Implemented Interfaces:
Serializable,Principal,org.springframework.security.core.Authentication,org.springframework.security.core.CredentialsContainer
public class RestAuthenticationToken extends org.springframework.security.authentication.UsernamePasswordAuthenticationTokenHolds the api token, passed by the client via a custom HTTP header- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RestAuthenticationToken(Object principal, Object credentials, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, String token)RestAuthenticationToken(String token)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetToken()-
Methods inherited from class org.springframework.security.authentication.UsernamePasswordAuthenticationToken
eraseCredentials, getCredentials, getPrincipal, setAuthenticated
-
Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
equals, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setDetails, toString
-
-
-
-
Constructor Detail
-
RestAuthenticationToken
public RestAuthenticationToken(Object principal, Object credentials, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, String token)
-
RestAuthenticationToken
public RestAuthenticationToken(String token)
-
-
Method Detail
-
getToken
public String getToken()
-
-