Class OAuthError
- java.lang.Object
-
- org.apache.cxf.rs.security.oauth2.common.OAuthError
-
public class OAuthError extends Object
Captures OAuth2 error properties
-
-
Constructor Summary
Constructors Constructor Description OAuthError()OAuthError(String error)OAuthError(String error, String descr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetError()Gets the errorStringgetErrorDescription()Gets the error descriptionStringgetErrorUri()Gets the optional link to the page describing the error in detailStringgetState()Gets the client state tokenvoidsetError(String error)Sets the error such as "invalid_grant", etcvoidsetErrorDescription(String errorDescription)Sets the error descriptionvoidsetErrorUri(String errorUri)Sets the optional link to the page describing the error in detailvoidsetState(String state)Sets the client state token which needs to be returned to the client alongside the error information if it was provided during the client requestStringtoString()
-
-
-
Method Detail
-
setError
public void setError(String error)
Sets the error such as "invalid_grant", etc- Parameters:
error- the error
-
getError
public String getError()
Gets the error- Returns:
- error
-
setErrorDescription
public void setErrorDescription(String errorDescription)
Sets the error description- Parameters:
errorDescription- error description
-
getErrorDescription
public String getErrorDescription()
Gets the error description- Returns:
- error description
-
setErrorUri
public void setErrorUri(String errorUri)
Sets the optional link to the page describing the error in detail- Parameters:
errorUri- error page URI
-
getErrorUri
public String getErrorUri()
Gets the optional link to the page describing the error in detail
-
setState
public void setState(String state)
Sets the client state token which needs to be returned to the client alongside the error information if it was provided during the client request- Parameters:
state- the client state token
-
getState
public String getState()
Gets the client state token- Returns:
- the state
-
-