Interface JwtIssuerInput.Builder

  • Method Details

    • issuer

      The OpenID Connect (OIDC) issuer URL. The value must be an absolute https URL that includes a host and has no user information, query, or fragment. It must exactly match the iss claim of the token, and the issuer's OIDC discovery document must name this exact issuer.

      Parameters:
      issuer - The OpenID Connect (OIDC) issuer URL. The value must be an absolute https URL that includes a host and has no user information, query, or fragment. It must exactly match the iss claim of the token, and the issuer's OIDC discovery document must name this exact issuer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • audiences

      JwtIssuerInput.Builder audiences(Collection<String> audiences)

      The audiences that the issuer can issue tokens for. None can be empty. The token's aud claim must contain at least one of these values.

      Parameters:
      audiences - The audiences that the issuer can issue tokens for. None can be empty. The token's aud claim must contain at least one of these values.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • audiences

      JwtIssuerInput.Builder audiences(String... audiences)

      The audiences that the issuer can issue tokens for. None can be empty. The token's aud claim must contain at least one of these values.

      Parameters:
      audiences - The audiences that the issuer can issue tokens for. None can be empty. The token's aud claim must contain at least one of these values.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • additionalClaims

      JwtIssuerInput.Builder additionalClaims(Collection<JwtAdditionalClaim> additionalClaims)

      The additional claim rules for this issuer. Claim names must be unique within the issuer.

      Parameters:
      additionalClaims - The additional claim rules for this issuer. Claim names must be unique within the issuer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • additionalClaims

      JwtIssuerInput.Builder additionalClaims(JwtAdditionalClaim... additionalClaims)

      The additional claim rules for this issuer. Claim names must be unique within the issuer.

      Parameters:
      additionalClaims - The additional claim rules for this issuer. Claim names must be unique within the issuer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • additionalClaims

      JwtIssuerInput.Builder additionalClaims(Consumer<JwtAdditionalClaim.Builder>... additionalClaims)

      The additional claim rules for this issuer. Claim names must be unique within the issuer.

      This is a convenience method that creates an instance of the JwtAdditionalClaim.Builder avoiding the need to create one manually via JwtAdditionalClaim.builder() .

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to additionalClaims(List<JwtAdditionalClaim>).

      Parameters:
      additionalClaims - a consumer that will call methods on JwtAdditionalClaim.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: