public class AuthenticationResult extends java.lang.Object implements java.io.Serializable
Constructor and Description |
---|
AuthenticationResult(java.lang.Object principal,
java.util.Collection<java.lang.String> authorities,
long authTime)
Construct a new Authentication Result with the provided information.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<java.lang.String> |
getAuthorities()
The authorities that the principal has been granted.
|
long |
getAuthTime()
Retrieves the time that the user authenticated with the server.
|
java.lang.Object |
getPrincipal()
The identity of the authenticated principal.
|
public AuthenticationResult(java.lang.Object principal, java.util.Collection<java.lang.String> authorities, long authTime)
principal
- The object representing the authenticated principal.authorities
- The authorities that the principal has been granted.authTime
- The time at which the resource owner was authenticated with
the Identity Broker, in milliseconds since 1/1/70 12:00 AM.public java.lang.Object getPrincipal()
Principal
.public java.util.Collection<java.lang.String> getAuthorities()
public long getAuthTime()