Package com.mongodb

Interface MongoCredential.OidcCallbackContext

Enclosing class:
MongoCredential

@Evolving public static interface MongoCredential.OidcCallbackContext
The context for the OIDC request callback.
Since:
5.1
  • Method Details

    • getUserName

      @Nullable String 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

      @Nullable String 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.