org.apache.shindig.auth
Class AuthenticationHandler.InvalidAuthenticationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.shindig.auth.AuthenticationHandler.InvalidAuthenticationException
All Implemented Interfaces:
Serializable
Enclosing interface:
AuthenticationHandler

public static final class AuthenticationHandler.InvalidAuthenticationException
extends Exception

An exception thrown by an AuthenticationHandler in the situation where a malformed credential or token is passed. A handler which throws this exception is required to include the appropriate error state in the servlet response

See Also:
Serialized Form

Constructor Summary
AuthenticationHandler.InvalidAuthenticationException(String message, Throwable cause)
           
AuthenticationHandler.InvalidAuthenticationException(String message, Throwable cause, Map<String,String> additionalHeaders, String redirect)
           
 
Method Summary
 Map<String,String> getAdditionalHeaders()
           
 String getRedirect()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AuthenticationHandler.InvalidAuthenticationException

public AuthenticationHandler.InvalidAuthenticationException(String message,
                                                            Throwable cause)
Parameters:
message - Message to output in error response
cause - Underlying exception

AuthenticationHandler.InvalidAuthenticationException

public AuthenticationHandler.InvalidAuthenticationException(String message,
                                                            Throwable cause,
                                                            Map<String,String> additionalHeaders,
                                                            String redirect)
Parameters:
message - Message to output in error response
cause - Underlying exception
additionalHeaders - Headers to add to error response
redirect - URL to redirect to on error
Method Detail

getAdditionalHeaders

public Map<String,String> getAdditionalHeaders()

getRedirect

public String getRedirect()


Copyright © 2007-2012. All Rights Reserved.