public final class OAuth2Authorization extends Object
OAuth2CrestAuthorizationModules.| Modifier and Type | Method and Description |
|---|---|
static OAuth2CrestAuthorizationModule |
forCrest(HttpClientHandler httpClientHandler,
String tokenInfoEndpoint,
String userInfoEndpoint,
Set<String> requiredScopes)
Creates a new
OAuth2CrestAuthorizationModule with the provided configuration parameters. |
static OAuth2CrestAuthorizationModule |
forCrest(HttpClientHandler httpClientHandler,
String tokenInfoEndpoint,
String userInfoEndpoint,
Set<String> requiredScopes,
boolean cacheEnabled,
int cacheSize)
Creates a new
OAuth2CrestAuthorizationModule with the provided configuration parameters. |
static OAuth2CrestAuthorizationModule |
forCrest(OAuth2AccessTokenValidator accessTokenValidator,
Set<String> requiredScopes,
boolean cacheEnabled,
int cacheSize)
Creates a new
OAuth2CrestAuthorizationModule with the provided configuration parameters. |
public static OAuth2CrestAuthorizationModule forCrest(OAuth2AccessTokenValidator accessTokenValidator, Set<String> requiredScopes, boolean cacheEnabled, int cacheSize)
OAuth2CrestAuthorizationModule with the provided configuration parameters.accessTokenValidator - A OAuth2AccessTokenValidator instance.requiredScopes - The required OAuth2 scopes for the request to be authorized.cacheEnabled - true if the cache should be used.cacheSize - The size of the cache. Only used if cacheEnabled is set to true.OAuth2CrestAuthorizationModule instance.public static OAuth2CrestAuthorizationModule forCrest(HttpClientHandler httpClientHandler, String tokenInfoEndpoint, String userInfoEndpoint, Set<String> requiredScopes, boolean cacheEnabled, int cacheSize)
OAuth2CrestAuthorizationModule with the provided configuration parameters.httpClientHandler - The Handler to use to make HTTP requests.tokenInfoEndpoint - The URI for the OAuth2 token info endpoint.userInfoEndpoint - The URI for the OAuth2 user info endpoint.requiredScopes - The required OAuth2 scopes for the request to be authorized.cacheEnabled - true if the cache should be used.cacheSize - The size of the cache. Only used if cacheEnabled is set to true.OAuth2CrestAuthorizationModule instance.public static OAuth2CrestAuthorizationModule forCrest(HttpClientHandler httpClientHandler, String tokenInfoEndpoint, String userInfoEndpoint, Set<String> requiredScopes)
Creates a new OAuth2CrestAuthorizationModule with the provided configuration parameters.
Disables the cache.
httpClientHandler - The Handler to use to make HTTP requests.tokenInfoEndpoint - The URI for the OAuth2 token info endpoint.userInfoEndpoint - The URI for the OAuth2 user info endpoint.requiredScopes - The required OAuth2 scopes for the request to be authorized.OAuth2CrestAuthorizationModule instance.Copyright © 2025 Open Identity Platform Community. All rights reserved.