org.springframework.security.oauth2.provider.authentication
Class OAuth2AuthenticationDetails

java.lang.Object
  extended by org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationDetails
All Implemented Interfaces:
Serializable

public class OAuth2AuthenticationDetails
extends Object
implements Serializable

A holder of selected HTTP details related to an OAuth2 authentication request.

Author:
Dave Syer
See Also:
Serialized Form

Field Summary
static String ACCESS_TOKEN_VALUE
           
 
Constructor Summary
OAuth2AuthenticationDetails(HttpServletRequest request)
          Records the access token value and remote address and will also set the session Id if a session already exists (it won't create one).
 
Method Summary
 String getRemoteAddress()
          Indicates the TCP/IP address the authentication request was received from.
 String getSessionId()
          Indicates the HttpSession id the authentication request was received from.
 String getTokenValue()
          The access token value used to authenticate the request (normally in an authorization header).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACCESS_TOKEN_VALUE

public static final String ACCESS_TOKEN_VALUE
Constructor Detail

OAuth2AuthenticationDetails

public OAuth2AuthenticationDetails(HttpServletRequest request)
Records the access token value and remote address and will also set the session Id if a session already exists (it won't create one).

Parameters:
request - that the authentication request was received from
Method Detail

getTokenValue

public String getTokenValue()
The access token value used to authenticate the request (normally in an authorization header).

Returns:
the tokenValue used to authenticate the request

getRemoteAddress

public String getRemoteAddress()
Indicates the TCP/IP address the authentication request was received from.

Returns:
the address

getSessionId

public String getSessionId()
Indicates the HttpSession id the authentication request was received from.

Returns:
the session ID


Copyright © 2012. All Rights Reserved.