public final class Authentication extends Object implements Serializable
SecurityManager.authenticate(UserDetails)
. An Authentication encapsulates the
UserDetails
and the corresponding populated authorities.
Constructor and Description |
---|
Authentication(UserDetails userDetails)
Create an authentication for an authenticated
UserDetails . |
Modifier and Type | Method and Description |
---|---|
GrantedAuthorities |
getGrantedAuthorities()
The underlying user details authorities, parsed into a queriable form.
|
UserDetails |
getUserDetails()
The underlying user details used to authenticate
|
String |
toString() |
public Authentication(UserDetails userDetails)
UserDetails
.userDetails
- authenticated user details.public UserDetails getUserDetails()
public GrantedAuthorities getGrantedAuthorities()
Copyright © GigaSpaces.