Class PhoneAuthenticationToken
- java.lang.Object
-
- org.springframework.security.authentication.AbstractAuthenticationToken
-
- org.oxerr.spring.security.phone.authentication.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 Summary
Constructors Constructor Description PhoneAuthenticationToken(String number, String code)
PhoneAuthenticationToken(org.springframework.security.core.userdetails.UserDetails userDetails)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
eraseCredentials()
Object
getCredentials()
Object
getPrincipal()
void
setAuthenticated(boolean isAuthenticated)
-
Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
equals, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setDetails, toString
-
-
-
-
Method Detail
-
getCredentials
public Object getCredentials()
-
getPrincipal
public Object getPrincipal()
-
setAuthenticated
public void setAuthenticated(boolean isAuthenticated) throws IllegalArgumentException
- Specified by:
setAuthenticated
in interfaceorg.springframework.security.core.Authentication
- Overrides:
setAuthenticated
in classorg.springframework.security.authentication.AbstractAuthenticationToken
- Throws:
IllegalArgumentException
-
eraseCredentials
public void eraseCredentials()
- Specified by:
eraseCredentials
in interfaceorg.springframework.security.core.CredentialsContainer
- Overrides:
eraseCredentials
in classorg.springframework.security.authentication.AbstractAuthenticationToken
-
-