Interface CredentialsProvider

    • Method Detail

      • getUsername

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

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

        default 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.