public final class AuthorizationResourceHelper extends Object
SampleAuthorizationResource for an example usage.| Modifier and Type | Method and Description |
|---|---|
static AuthorizationData |
getAuthorizationData(String bearerToken)
Returns the authorization data associated with a bearer token.
|
static boolean |
isValid(String bearerToken)
Validates the bearer token coming from the Authorization header.
|
public static boolean isValid(String bearerToken) throws AuthorizationHelperException
SampleAuthorizationResource.isValid(bearerToken) for an example usage.bearerToken - The token which the client had provided while requesting a resource.AuthorizationHelperException - Error validating bearer token
Indicates error conditions in the Authorization Helper APIs.public static AuthorizationData getAuthorizationData(String bearerToken) throws AuthorizationHelperException
SampleAuthorizationResource.getLatestMail for an example usage.bearerToken - The token which the client had provided while requesting a resource.AuthorizationDataAuthorizationHelperException - Fails to obtain bearer token
Indicates error conditions in the Authorization Helper APIs.Copyright © 2023 Avaya. All rights reserved.