Class TwoFactorAuthenticationToken

  • All Implemented Interfaces:
    Serializable, Principal, org.springframework.security.core.Authentication, org.springframework.security.core.CredentialsContainer

    public class TwoFactorAuthenticationToken
    extends org.springframework.security.authentication.UsernamePasswordAuthenticationToken
    Holds the api token, passed by the client via a custom HTTP header
    See Also:
    Serialized Form
    • Constructor Detail

      • TwoFactorAuthenticationToken

        public TwoFactorAuthenticationToken​(Object principal,
                                            Object credentials,
                                            Collection<? extends org.springframework.security.core.GrantedAuthority> authorities,
                                            String verificationCode,
                                            String secretKey)
      • TwoFactorAuthenticationToken

        public TwoFactorAuthenticationToken​(String verificationCode,
                                            String secretKey)
    • Method Detail

      • getVerificationCode

        public String getVerificationCode()
      • getSecretKey

        public String getSecretKey()