@Deprecated public class RestAPIUtil extends Object
| Constructor and Description |
|---|
RestAPIUtil()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static ErrorDTO |
getErrorDTO(com.nimbusds.oauth2.sdk.ErrorObject errorObject)
Deprecated.
Returns a generic errorDTO
|
static ErrorDTO |
getInternalServerErrorDTO()
Deprecated.
Returns an Internal Server Error DTO
|
static Object[] |
parse(String header)
Deprecated.
Parse user credentials authorization header
|
public static ErrorDTO getErrorDTO(com.nimbusds.oauth2.sdk.ErrorObject errorObject)
errorObject - The error handler object.public static ErrorDTO getInternalServerErrorDTO()
public static Object[] parse(String header) throws ParseException
header - authorization header valueParseException - throws if a parse exception occurredCopyright © 2018 WSO2. All rights reserved.