Class OpenIdConnectTokenSelectionItem

    • Method Detail

      • accessTokenOnly

        public final OpenIdConnectAccessTokenConfigurationItem accessTokenOnly()

        The OIDC configuration for processing access tokens. Contains allowed audience claims, for example https://auth.example.com, and the claim that you want to map to the principal, for example sub.

        Returns:
        The OIDC configuration for processing access tokens. Contains allowed audience claims, for example https://auth.example.com, and the claim that you want to map to the principal, for example sub.
      • identityTokenOnly

        public final OpenIdConnectIdentityTokenConfigurationItem identityTokenOnly()

        The OIDC configuration for processing identity (ID) tokens. Contains allowed client ID claims, for example 1example23456789, and the claim that you want to map to the principal, for example sub.

        Returns:
        The OIDC configuration for processing identity (ID) tokens. Contains allowed client ID claims, for example 1example23456789, and the claim that you want to map to the principal, for example sub.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)
      • fromAccessTokenOnly

        public static OpenIdConnectTokenSelectionItem fromAccessTokenOnly​(OpenIdConnectAccessTokenConfigurationItem accessTokenOnly)
        Create an instance of this class with accessTokenOnly() initialized to the given value.

        The OIDC configuration for processing access tokens. Contains allowed audience claims, for example https://auth.example.com, and the claim that you want to map to the principal, for example sub.

        Parameters:
        accessTokenOnly - The OIDC configuration for processing access tokens. Contains allowed audience claims, for example https://auth.example.com, and the claim that you want to map to the principal, for example sub.
      • fromAccessTokenOnly

        public static OpenIdConnectTokenSelectionItem fromAccessTokenOnly​(Consumer<OpenIdConnectAccessTokenConfigurationItem.Builder> accessTokenOnly)
        Create an instance of this class with accessTokenOnly() initialized to the given value.

        The OIDC configuration for processing access tokens. Contains allowed audience claims, for example https://auth.example.com, and the claim that you want to map to the principal, for example sub.

        Parameters:
        accessTokenOnly - The OIDC configuration for processing access tokens. Contains allowed audience claims, for example https://auth.example.com, and the claim that you want to map to the principal, for example sub.
      • fromIdentityTokenOnly

        public static OpenIdConnectTokenSelectionItem fromIdentityTokenOnly​(OpenIdConnectIdentityTokenConfigurationItem identityTokenOnly)
        Create an instance of this class with identityTokenOnly() initialized to the given value.

        The OIDC configuration for processing identity (ID) tokens. Contains allowed client ID claims, for example 1example23456789, and the claim that you want to map to the principal, for example sub.

        Parameters:
        identityTokenOnly - The OIDC configuration for processing identity (ID) tokens. Contains allowed client ID claims, for example 1example23456789, and the claim that you want to map to the principal, for example sub.
      • fromIdentityTokenOnly

        public static OpenIdConnectTokenSelectionItem fromIdentityTokenOnly​(Consumer<OpenIdConnectIdentityTokenConfigurationItem.Builder> identityTokenOnly)
        Create an instance of this class with identityTokenOnly() initialized to the given value.

        The OIDC configuration for processing identity (ID) tokens. Contains allowed client ID claims, for example 1example23456789, and the claim that you want to map to the principal, for example sub.

        Parameters:
        identityTokenOnly - The OIDC configuration for processing identity (ID) tokens. Contains allowed client ID claims, for example 1example23456789, and the claim that you want to map to the principal, for example sub.