Class PhoneAuthenticationToken

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

    public class PhoneAuthenticationToken
    extends org.springframework.security.authentication.AbstractAuthenticationToken
    See Also:
    Serialized Form
    • Constructor Detail

      • PhoneAuthenticationToken

        public PhoneAuthenticationToken​(String number,
                                        String code)
      • PhoneAuthenticationToken

        public PhoneAuthenticationToken​(org.springframework.security.core.userdetails.UserDetails userDetails)
    • Method Detail

      • getCredentials

        public Object getCredentials()
      • getPrincipal

        public Object getPrincipal()
      • setAuthenticated

        public void setAuthenticated​(boolean isAuthenticated)
                              throws IllegalArgumentException
        Specified by:
        setAuthenticated in interface org.springframework.security.core.Authentication
        Overrides:
        setAuthenticated in class org.springframework.security.authentication.AbstractAuthenticationToken
        Throws:
        IllegalArgumentException
      • eraseCredentials

        public void eraseCredentials()
        Specified by:
        eraseCredentials in interface org.springframework.security.core.CredentialsContainer
        Overrides:
        eraseCredentials in class org.springframework.security.authentication.AbstractAuthenticationToken