com.unboundid.directory.sdk.http.types
Class AuthenticationResult

java.lang.Object
  extended by com.unboundid.directory.sdk.http.types.AuthenticationResult
All Implemented Interfaces:
java.io.Serializable

public class AuthenticationResult
extends java.lang.Object
implements java.io.Serializable

Represents a HTTP authentication result.

See Also:
Serialized Form

Constructor Summary
AuthenticationResult(java.lang.Object principal, java.util.Collection<java.lang.String> authorities, long authTime)
          Construct a new Authentication Result with the provided information.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticationResult

public AuthenticationResult(java.lang.Object principal,
                            java.util.Collection<java.lang.String> authorities,
                            long authTime)
Construct a new Authentication Result with the provided information.

Parameters:
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.
Method Detail

getPrincipal

public java.lang.Object getPrincipal()
The identity of the authenticated principal.

Returns:
the authenticated Principal.

getAuthorities

public java.util.Collection<java.lang.String> getAuthorities()
The authorities that the principal has been granted.

Returns:
the authorities granted to the principal, Never null.

getAuthTime

public long getAuthTime()
Retrieves the time that the user authenticated with the server.

Returns:
Authentication time in milliseconds since midnight 1/1/1970 GMT.