Class OTPAuthenticationToken

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

    public class OTPAuthenticationToken
    extends Object
    implements org.springframework.security.core.Authentication
    See Also:
    Serialized Form
    • Field Detail

      • oneTimePassword

        private String oneTimePassword
      • authentication

        private org.springframework.security.core.Authentication authentication
    • Constructor Detail

      • OTPAuthenticationToken

        public OTPAuthenticationToken​(String oneTimePassword)
      • OTPAuthenticationToken

        public OTPAuthenticationToken​(org.springframework.security.core.Authentication authentication)
    • Method Detail

      • getOneTimePassword

        public String getOneTimePassword()
      • setOneTimePassword

        public void setOneTimePassword​(String oneTimePassword)
      • getAuthorities

        public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
        Specified by:
        getAuthorities in interface org.springframework.security.core.Authentication
      • getCredentials

        public Object getCredentials()
        Specified by:
        getCredentials in interface org.springframework.security.core.Authentication
      • getDetails

        public Object getDetails()
        Specified by:
        getDetails in interface org.springframework.security.core.Authentication
      • getPrincipal

        public Object getPrincipal()
        Specified by:
        getPrincipal in interface org.springframework.security.core.Authentication
      • isAuthenticated

        public boolean isAuthenticated()
        Specified by:
        isAuthenticated in interface org.springframework.security.core.Authentication