Interface CredentialsProvider

    • Method Detail

      • getUsername

        java.lang.String getUsername()
        Username to use for authentication
        Returns:
        username
      • getPassword

        java.lang.String getPassword()
        Password/secret/token to use for authentication
        Returns:
        password/secret/token
      • getTimeBeforeExpiration

        default java.time.Duration getTimeBeforeExpiration()
        The time before the credentials expire, if they do expire.

        If credentials do not expire, must return null. Default behavior is to return null, assuming credentials never expire.

        Returns:
        time before expiration
      • refresh

        default void refresh()
        Instructs the provider to refresh or renew credentials.

        Default behavior is no-op.