Class TwoFactorAuthenticationToken
- java.lang.Object
-
- org.springframework.security.authentication.AbstractAuthenticationToken
-
- org.springframework.security.authentication.UsernamePasswordAuthenticationToken
-
- org.molgenis.security.twofactor.auth.TwoFactorAuthenticationToken
-
- All Implemented Interfaces:
Serializable,Principal,org.springframework.security.core.Authentication,org.springframework.security.core.CredentialsContainer
public class TwoFactorAuthenticationToken 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 TwoFactorAuthenticationToken(Object principal, Object credentials, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, String verificationCode, String secretKey)TwoFactorAuthenticationToken(String verificationCode, String secretKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetSecretKey()StringgetVerificationCode()-
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
-
TwoFactorAuthenticationToken
public TwoFactorAuthenticationToken(Object principal, Object credentials, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, String verificationCode, String secretKey)
-
-