Interface CustomJWTAuthorizerConfiguration.Builder

  • Method Details

    • discoveryUrl

      This URL is used to fetch OpenID Connect configuration or authorization server metadata for validating incoming tokens.

      Parameters:
      discoveryUrl - This URL is used to fetch OpenID Connect configuration or authorization server metadata for validating incoming tokens.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allowedAudience

      CustomJWTAuthorizerConfiguration.Builder allowedAudience(Collection<String> allowedAudience)

      Represents individual audience values that are validated in the incoming JWT token validation process.

      Parameters:
      allowedAudience - Represents individual audience values that are validated in the incoming JWT token validation process.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allowedAudience

      CustomJWTAuthorizerConfiguration.Builder allowedAudience(String... allowedAudience)

      Represents individual audience values that are validated in the incoming JWT token validation process.

      Parameters:
      allowedAudience - Represents individual audience values that are validated in the incoming JWT token validation process.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allowedClients

      Represents individual client IDs that are validated in the incoming JWT token validation process.

      Parameters:
      allowedClients - Represents individual client IDs that are validated in the incoming JWT token validation process.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allowedClients

      CustomJWTAuthorizerConfiguration.Builder allowedClients(String... allowedClients)

      Represents individual client IDs that are validated in the incoming JWT token validation process.

      Parameters:
      allowedClients - Represents individual client IDs that are validated in the incoming JWT token validation process.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allowedScopes

      An array of scopes that are allowed to access the token.

      Parameters:
      allowedScopes - An array of scopes that are allowed to access the token.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allowedScopes

      CustomJWTAuthorizerConfiguration.Builder allowedScopes(String... allowedScopes)

      An array of scopes that are allowed to access the token.

      Parameters:
      allowedScopes - An array of scopes that are allowed to access the token.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • customClaims

      An array of objects that define a custom claim validation name, value, and operation

      Parameters:
      customClaims - An array of objects that define a custom claim validation name, value, and operation
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • customClaims

      An array of objects that define a custom claim validation name, value, and operation

      Parameters:
      customClaims - An array of objects that define a custom claim validation name, value, and operation
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • customClaims

      An array of objects that define a custom claim validation name, value, and operation

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

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

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