public class Auth0UserDetails extends Object implements org.springframework.security.core.userdetails.UserDetails
| Constructor and Description |
|---|
Auth0UserDetails(Map<String,Object> map,
AuthorityStrategy authorityStrategy) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAuth0Attribute(String attributeName)
Will return the details of the attribute of JWT decoded token if it exists or null otherwise.
|
Collection<? extends org.springframework.security.core.GrantedAuthority> |
getAuthorities() |
String |
getPassword()
Will return UnsupportedOperationException
|
String |
getUsername()
Gets the email if it exists otherwise it returns the user_id
|
boolean |
isAccountNonExpired() |
boolean |
isAccountNonLocked() |
boolean |
isCredentialsNonExpired() |
boolean |
isEnabled()
Will return true if the email is verified, otherwise it will return false
|
public Auth0UserDetails(Map<String,Object> map, AuthorityStrategy authorityStrategy)
public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
getAuthorities in interface org.springframework.security.core.userdetails.UserDetailspublic String getPassword()
getPassword in interface org.springframework.security.core.userdetails.UserDetailspublic String getUsername()
getUsername in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isAccountNonExpired()
isAccountNonExpired in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isAccountNonLocked()
isAccountNonLocked in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isCredentialsNonExpired()
isCredentialsNonExpired in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isEnabled()
isEnabled in interface org.springframework.security.core.userdetails.UserDetailspublic Object getAuth0Attribute(String attributeName)
Copyright © 2016. All Rights Reserved.