Package com.mongodb
Interface MongoCredential.OidcCallbackContext
- Enclosing class:
- MongoCredential
The context for the
OIDC request callback
.- Since:
- 5.1
-
Method Summary
Modifier and TypeMethodDescriptionint
-
Method Details
-
getUserName
- Returns:
- Convenience method to obtain the username.
-
getTimeout
Duration getTimeout()- Returns:
- The timeout that this callback must complete within.
-
getVersion
int getVersion()- Returns:
- The OIDC callback API version. Currently, version 1.
-
getIdpInfo
- Returns:
- The OIDC Identity Provider's configuration that can be used to acquire an Access Token, or null if not using a human callback.
-
getRefreshToken
- Returns:
- The OIDC Refresh token supplied by a prior callback invocation, or null if no token was supplied, or if not using a human callback.
-