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
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.AuthorizationData
AuthorizationHelperException
Copyright © 2016 Avaya. All Rights Reserved.