GigaSpaces XAP 7.0 API

com.gigaspaces.security
Class Authentication

java.lang.Object
  extended by com.gigaspaces.security.Authentication
All Implemented Interfaces:
Serializable

public final class Authentication
extends Object
implements Serializable

Represents an authenticated request, returned on successful call to SecurityManager.authenticate(UserDetails).

An Authentication encapsulates the UserDetails and the corresponding populated authorities.

Since:
7.0.1
Author:
Moran Avigdor
See Also:
Serialized Form

Constructor Summary
Authentication(UserDetails userDetails)
          Create an authentication for an authenticated UserDetails.
 
Method Summary
 GrantedAuthorities getGrantedAuthorities()
          The underlying user details authorities, parsed into a queriable form.
 UserDetails getUserDetails()
          The underlying user details used to authenticate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Authentication

public Authentication(UserDetails userDetails)
Create an authentication for an authenticated UserDetails.

Parameters:
userDetails - authenticated user details.
Method Detail

getUserDetails

public UserDetails getUserDetails()
The underlying user details used to authenticate

Returns:
the authenticated user details.

getGrantedAuthorities

public GrantedAuthorities getGrantedAuthorities()
The underlying user details authorities, parsed into a queriable form.

Returns:
parsed authorities.

GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.