Package | Description |
---|---|
com.avaya.collaboration.authorization.client |
Helper APIs to aid Authorization Clients to obtain access tokens from Authorization Service.
|
com.avaya.collaboration.authorization.resource |
Helper APIs to aid Authorization Resources to validate and parse bearer tokens.
AuthorizationResourceHelper is the helper used to validate a bearer token and fetch AuthorizationData it contains.AuthorizationData provides authorization information a bearer token represents. |
Modifier and Type | Method and Description |
---|---|
static AccessToken |
AuthorizationClientHelper.getAccessToken()
Authenticates the client with the Authorization Service, obtains an access token and returns it.
|
static AccessToken |
AuthorizationClientHelper.getAccessToken(List scopes)
Authenticates the client with the Authorization Service, obtains an access token and returns it; the client can request for specific
scopes during authentication by using the "scopes" parameter.
|
static AccessToken |
AuthorizationClientHelper.getAccessTokenForUser(ServletRequest servletRequest)
Authenticates the client (along with the user's auth code) with the Authorization Service, obtains an access token and returns it.
|
static AccessToken |
AuthorizationClientHelper.getAccessTokenForUser(String userName,
String userPassword)
Authenticates the client and the end user with the Authorization Service, obtains an access token and returns it.
|
static AccessToken |
AuthorizationClientHelper.getAccessTokenForUser(String userName,
String userPassword,
List scopes)
Authenticates the client and the end user with the Authorization Service, obtains an access token and returns it; the client can
request for specific scopes during authentication by using the "scopes" parameter.
|
static String |
AuthorizationClientHelper.getAuthorizationEndpoint(ServletRequest servletRequest)
Provides the Authorization Endpoint to which the client redirects the user-agent(browser) for getting an authorization code.
|
static String |
AuthorizationClientHelper.getAuthorizationEndpoint(ServletRequest servletRequest,
List scopes)
Provides the Authorization Endpoint to which the client redirects the user-agent(browser) for getting an authorization code.
|
static TokenAggregate |
AuthorizationClientHelper.getTokenAggregate()
Authenticates the client with the Authorization Service and obtains a token aggregate.
|
static TokenAggregate |
AuthorizationClientHelper.getTokenAggregate(List scopes)
Authenticates the client with the Authorization Service, obtains a token aggregate and returns it; the client can request for
specific scopes during authentication by using the "scopes" parameter.
|
static TokenAggregate |
AuthorizationClientHelper.getTokenAggregate(String refreshToken)
Authenticates the client with the Authorization Service, obtains a token aggregate using a refresh token and returns it.
|
static TokenAggregate |
AuthorizationClientHelper.getTokenAggregateForUser(ServletRequest servletRequest)
Authenticates the client (along with the user's auth code) with the Authorization Service, obtains a token aggregate and returns it.
|
static TokenAggregate |
AuthorizationClientHelper.getTokenAggregateForUser(String userName,
String userPassword)
Authenticates the client and the end user with the Authorization Service, obtains a token aggregate and returns it.
|
static TokenAggregate |
AuthorizationClientHelper.getTokenAggregateForUser(String userName,
String userPassword,
List scopes)
Authenticates the client and the end user with the Authorization Service, obtains an access token and returns it; the client can
request for specific scopes during authentication by using the "scopes" parameter.
|
Modifier and Type | Method and Description |
---|---|
static AuthorizationData |
AuthorizationResourceHelper.getAuthorizationData(String bearerToken)
Returns the authorization data associated with a bearer token.
|
static boolean |
AuthorizationResourceHelper.isValid(String bearerToken)
Validates the bearer token coming from the Authorization header.
|
Copyright © 2023 Avaya. All rights reserved.