Package com.mongodb
Class MongoCredential.OidcCallbackResult
java.lang.Object
com.mongodb.MongoCredential.OidcCallbackResult
- Enclosing class:
- MongoCredential
The OIDC credential information.
- Since:
- 5.1
-
Constructor Summary
ConstructorDescriptionOidcCallbackResult
(String accessToken) An access token that does not expire.OidcCallbackResult
(String accessToken, Duration expiresIn) OidcCallbackResult
(String accessToken, Duration expiresIn, String refreshToken) -
Method Summary
-
Constructor Details
-
OidcCallbackResult
An access token that does not expire.- Parameters:
accessToken
- The OIDC access token.
-
OidcCallbackResult
- Parameters:
accessToken
- The OIDC access token.expiresIn
- Time until the access token expires. A zero-length duration means that the access token does not expire.
-
OidcCallbackResult
- Parameters:
accessToken
- The OIDC access token.expiresIn
- Time until the access token expires. A zero-length duration means that the access token does not expire.refreshToken
- The refresh token. If null, refresh will not be attempted.
-
-
Method Details
-
getAccessToken
- Returns:
- The OIDC access token.
-
getRefreshToken
- Returns:
- The OIDC refresh token. If null, refresh will not be attempted.
-