Class UserDetails
- java.lang.Object
-
- io.streamthoughts.azkarra.http.security.auth.UserDetails
-
public class UserDetails extends Object
-
-
Constructor Summary
Constructors Constructor Description UserDetails(String name, PasswordCredentials credentials, Collection<GrantedAuthority> authorities)
Creates a newUserDetails
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<GrantedAuthority>
allGrantedAuthorities()
PasswordCredentials
credentials()
String
name()
-
-
-
Constructor Detail
-
UserDetails
public UserDetails(String name, PasswordCredentials credentials, Collection<GrantedAuthority> authorities)
Creates a newUserDetails
instance.- Parameters:
name
- the name of the user.credentials
- the pasPasswordCredentials
of the user.authorities
- the authorities granted to the user.
-
-
Method Detail
-
name
public String name()
-
credentials
public PasswordCredentials credentials()
-
allGrantedAuthorities
public Collection<GrantedAuthority> allGrantedAuthorities()
-
-