Package org.jclouds.oauth.v2.filters
Class ClientCredentialsJWTBearerTokenFlow
- java.lang.Object
-
- org.jclouds.oauth.v2.filters.ClientCredentialsJWTBearerTokenFlow
-
- All Implemented Interfaces:
HttpRequestFilter
,OAuthFilter
public class ClientCredentialsJWTBearerTokenFlow extends Object implements OAuthFilter
Authorizes new Bearer Tokens at runtime by authorizing claims needed for the http request.Cache
This maintains a time-based Bearer Token cache. By default expires after 59 minutes (the maximum time a token is valid is 60 minutes). This cache and expiry period is system-wide and does not attend to per-instance expiry time (e.g. "expires_in" from Google Compute -- which is set to the standard 3600 seconds).
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpRequest
filter(HttpRequest request)
-
-
-
Method Detail
-
filter
public HttpRequest filter(HttpRequest request) throws HttpException
- Specified by:
filter
in interfaceHttpRequestFilter
- Throws:
HttpException
-
-