org.apache.shindig.auth
Class AuthInfo

java.lang.Object
  extended by org.apache.shindig.auth.AuthInfo

public class AuthInfo
extends Object

Class to get authorization information on a servlet request. Information is set by adding an AuthentiationServletFilter, and there is no way to set in a public API. This can be added in the future for testing purposes.


Nested Class Summary
static class AuthInfo.Attribute
          Constants for request attribute keys This is only public for testing.
 
Constructor Summary
AuthInfo(javax.servlet.http.HttpServletRequest req)
          Create AuthInfo from a given HttpServletRequest
 
Method Summary
 String getAuthType()
          Get the hosted domain for this request.
 SecurityToken getSecurityToken()
          Get the security token for this request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthInfo

@Inject
public AuthInfo(javax.servlet.http.HttpServletRequest req)
Create AuthInfo from a given HttpServletRequest

Parameters:
req -
Method Detail

getSecurityToken

public SecurityToken getSecurityToken()
Get the security token for this request.

Returns:
The security token

getAuthType

public String getAuthType()
Get the hosted domain for this request.

Returns:
The domain, or null if no domain was found


Copyright © 2007-2012. All Rights Reserved.