org.springframework.security.oauth2.common.exceptions
Class UnauthorizedClientException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.security.oauth2.common.exceptions.OAuth2Exception
                  extended by org.springframework.security.oauth2.common.exceptions.ClientAuthenticationException
                      extended by org.springframework.security.oauth2.common.exceptions.UnauthorizedClientException
All Implemented Interfaces:
Serializable

public class UnauthorizedClientException
extends ClientAuthenticationException

Exception thrown when a client was unable to authenticate.

Author:
Ryan Heaton
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.springframework.security.oauth2.common.exceptions.OAuth2Exception
ACCESS_DENIED, DESCRIPTION, ERROR, INVALID_CLIENT, INVALID_GRANT, INVALID_REQUEST, INVALID_SCOPE, INVALID_TOKEN, REDIRECT_URI_MISMATCH, UNAUTHORIZED_CLIENT, UNSUPPORTED_GRANT_TYPE, UNSUPPORTED_RESPONSE_TYPE, URI
 
Constructor Summary
UnauthorizedClientException(String msg)
           
UnauthorizedClientException(String msg, Throwable t)
           
 
Method Summary
 int getHttpErrorCode()
          The HTTP error code associated with this error.
 String getOAuth2ErrorCode()
          The OAuth2 error code.
 
Methods inherited from class org.springframework.security.oauth2.common.exceptions.OAuth2Exception
addAdditionalInformation, create, getAdditionalInformation, getSummary, toString, valueOf
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnauthorizedClientException

public UnauthorizedClientException(String msg,
                                   Throwable t)

UnauthorizedClientException

public UnauthorizedClientException(String msg)
Method Detail

getHttpErrorCode

public int getHttpErrorCode()
Description copied from class: OAuth2Exception
The HTTP error code associated with this error.

Overrides:
getHttpErrorCode in class ClientAuthenticationException
Returns:
The HTTP error code associated with this error.

getOAuth2ErrorCode

public String getOAuth2ErrorCode()
Description copied from class: OAuth2Exception
The OAuth2 error code.

Specified by:
getOAuth2ErrorCode in class ClientAuthenticationException
Returns:
The OAuth2 error code.


Copyright © 2012. All Rights Reserved.