|
Oracle Fusion Middleware Java API Reference for the Oracle Access Management OAuth Service 11g Release 2 Patch Set 3 (11.1.2.3) E59498-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.security.idaas.oauth.sdk.response.OAuthRestResponse
oracle.security.idaas.oauth.sdk.response.AccessTokenValidationResponse
public class AccessTokenValidationResponse
Class handling an Access token validation response.
Field Summary
Fields inherited from class oracle.security.idaas.oauth.sdk.response.OAuthRestResponse
tok |
AccessTokenValidationResponse(int status, java.lang.String response)Analyzes and formats the response as a token validation response. |
java.util.Map<java.lang.String,java.lang.String> |
getClaims()Returns the list of key/value claims. |
java.lang.String |
getError()Returns the error name. |
boolean |
isSuccessful()Returns true if the given token is valid. |
protected void |
parseResponse(java.lang.String result)Computes the response to extract the validation information. |
Methods inherited from class oracle.security.idaas.oauth.sdk.response.OAuthRestResponse
getErrorMessage, getStatus, isError, setErrorMessage, toString |
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail
public AccessTokenValidationResponse(int status,
java.lang.String response)
throws org.codehaus.jettison.json.JSONException
status - response status (200 means successful)response - the response message if the request is successful, else the error messageorg.codehaus.jettison.json.JSONException - if at least one of the mandatory element in the response is missing, or if the response is not formatted correctly.
protected void parseResponse(java.lang.String result)
throws org.codehaus.jettison.json.JSONException
parseResponse in class OAuthRestResponseresult - string to decodeorg.codehaus.jettison.json.JSONException - if at least one of the mandatory element in the response is missing, or if the response is not formatted correctly.public boolean isSuccessful()
public java.util.Map<java.lang.String,java.lang.String> getClaims()
public java.lang.String getError()
|
Oracle and/or its affiliates. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||