java.lang.Object
iu.auth.config.OAuthAccessTokenGrant
- Direct Known Subclasses:
OidcAuthorizationGrant
Authenticates to an OAuth 2.0 Token endpoint, verifies and holds a JWT access
token until expired.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the access token, completing OAuth 2.0 token interactions as needed.protected OAuthClientGets the configuredOAuthClientprotected abstract voidtokenAuth(HttpRequest.Builder requestBuilder) Prepares anHttpRequest.Builderfor the token endpoint.protected WebTokenvalidateJwt(String accessToken) Validates a JWT access token.protected abstract voidverifyToken(WebToken jwt) Performs post-verification of validated JWT claims.
-
Constructor Details
-
OAuthAccessTokenGrant
Constructor.- Parameters:
client- ConfiguredOAuthClient
-
-
Method Details
-
tokenAuth
Prepares anHttpRequest.Builderfor the token endpoint.- Parameters:
requestBuilder-HttpRequest.Builder
-
verifyToken
Performs post-verification of validated JWT claims.- Parameters:
jwt- parsed JWT
-
validateJwt
Validates a JWT access token.- Parameters:
accessToken- JWT compact serialization- Returns:
- Parsed and validated
WebToken
-
getClient
Gets the configuredOAuthClient- Returns:
- Configured
OAuthClient
-
getAccessToken
Gets the access token, completing OAuth 2.0 token interactions as needed.- Returns:
- access token
-