Oracle Communications Services Gatekeeper Java API Reference
7.0.0.1

E96578-01

oracle.ocsg.oauth2.ext.action
Class OAuth2ErrorAction

java.lang.Object
  extended byoracle.ocsg.oauth2.ext.action.OAuth2ErrorAction
All Implemented Interfaces:
OAuth2Action

public class OAuth2ErrorAction
extends java.lang.Object
implements OAuth2Action

Reports errors during OAuth 2.0 request handling.


Field Summary
static OAuth2ErrorAction ERROR_ACCESS_DENIED
           
static OAuth2ErrorAction ERROR_INVALID_CLIENT
           
static OAuth2ErrorAction ERROR_INVALID_GRANT
           
static OAuth2ErrorAction ERROR_INVALID_REQUEST
           
static OAuth2ErrorAction ERROR_INVALID_SCOPE
           
static OAuth2ErrorAction ERROR_METHOD_NOT_ALLOWED
           
static OAuth2ErrorAction ERROR_SERVER_ERROR
           
static OAuth2ErrorAction ERROR_TEMP_UNAVAILAZBLE
           
static OAuth2ErrorAction ERROR_UNAUTHORIZED_CLIENT
           
static OAuth2ErrorAction ERROR_UNSUPPORTED_GRANT_TYPE
           
static OAuth2ErrorAction ERROR_UNSUPPORTED_RESPONSE_TYPE
           
static java.util.Map TO_HTTP_CODE
           
 
Constructor Summary
OAuth2ErrorAction(java.lang.String anErr)
           
 
Method Summary
 java.lang.String getError()
          Gets the error type.
 java.lang.String getErrorDescription()
          Gets the error description.
 java.net.URI getErrorUri()
          Gets the redirect uri.
 int getStatus()
          Gets the http status code.
 void setErrorDescription(java.lang.String anErrorDescription)
          Sets the error description.
 void setErrorUri(java.net.URI anErrorUri)
          Sets the error uri.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERROR_ACCESS_DENIED

public static final OAuth2ErrorAction ERROR_ACCESS_DENIED

ERROR_INVALID_CLIENT

public static final OAuth2ErrorAction ERROR_INVALID_CLIENT

ERROR_INVALID_GRANT

public static final OAuth2ErrorAction ERROR_INVALID_GRANT

ERROR_INVALID_REQUEST

public static final OAuth2ErrorAction ERROR_INVALID_REQUEST

ERROR_INVALID_SCOPE

public static final OAuth2ErrorAction ERROR_INVALID_SCOPE

ERROR_METHOD_NOT_ALLOWED

public static final OAuth2ErrorAction ERROR_METHOD_NOT_ALLOWED

ERROR_SERVER_ERROR

public static final OAuth2ErrorAction ERROR_SERVER_ERROR

ERROR_TEMP_UNAVAILAZBLE

public static final OAuth2ErrorAction ERROR_TEMP_UNAVAILAZBLE

ERROR_UNAUTHORIZED_CLIENT

public static final OAuth2ErrorAction ERROR_UNAUTHORIZED_CLIENT

ERROR_UNSUPPORTED_GRANT_TYPE

public static final OAuth2ErrorAction ERROR_UNSUPPORTED_GRANT_TYPE

ERROR_UNSUPPORTED_RESPONSE_TYPE

public static final OAuth2ErrorAction ERROR_UNSUPPORTED_RESPONSE_TYPE

TO_HTTP_CODE

public static final java.util.Map TO_HTTP_CODE
Constructor Detail

OAuth2ErrorAction

public OAuth2ErrorAction(java.lang.String anErr)
Method Detail

getError

public java.lang.String getError()
Gets the error type.

Returns:
error type

getErrorDescription

public java.lang.String getErrorDescription()
Gets the error description.

Returns:
error description

getErrorUri

public java.net.URI getErrorUri()
Gets the redirect uri.

Returns:
error redirect uri

getStatus

public int getStatus()
Gets the http status code.

Returns:
http status

setErrorDescription

public void setErrorDescription(java.lang.String anErrorDescription)
Sets the error description.

Parameters:
anErrorDescription - the error description

setErrorUri

public void setErrorUri(java.net.URI anErrorUri)
Sets the error uri.

Parameters:
anErrorUri - the error uri

Oracle Communications Services Gatekeeper Java API Reference
7.0.0.1

E96578-01

Copyright © 2008, 2018, Oracle and/or its affiliates. All rights reserved.