Class PhoneAuthenticationToken
- java.lang.Object
-
- org.springframework.security.authentication.AbstractAuthenticationToken
-
- org.springframework.security.authentication.UsernamePasswordAuthenticationToken
-
- org.oxerr.spring.security.phone.core.PhoneAuthenticationToken
-
- All Implemented Interfaces:
Serializable
,Principal
,org.springframework.security.core.Authentication
,org.springframework.security.core.CredentialsContainer
public class PhoneAuthenticationToken extends org.springframework.security.authentication.UsernamePasswordAuthenticationToken
- 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 String
getCredentials()
-
Methods inherited from class org.springframework.security.authentication.UsernamePasswordAuthenticationToken
eraseCredentials, getPrincipal, setAuthenticated
-
Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
equals, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setDetails, toString
-
-
-
-
Method Detail
-
getCredentials
public String getCredentials()
- Specified by:
getCredentials
in interfaceorg.springframework.security.core.Authentication
- Overrides:
getCredentials
in classorg.springframework.security.authentication.UsernamePasswordAuthenticationToken
-
-