Class OIDCUserInfoConfiguration

    • Constructor Detail

      • OIDCUserInfoConfiguration

        public OIDCUserInfoConfiguration()
        Constructor.
      • OIDCUserInfoConfiguration

        public OIDCUserInfoConfiguration​(@Nonnull @NotEmpty
                                         String profileId)
        Creates a new configuration instance.
        Parameters:
        profileId - Unique profile identifier.
    • Method Detail

      • isResolveAttributes

        public boolean isResolveAttributes​(@Nullable
                                           ProfileRequestContext profileRequestContext)
        Specified by:
        isResolveAttributes in interface net.shibboleth.idp.profile.config.AttributeResolvingProfileConfiguration
      • setResolveAttributes

        public void setResolveAttributes​(boolean flag)
        Set whether attributes should be resolved during the profile.
        Parameters:
        flag - flag to set
      • setResolveAttributesPredicate

        public void setResolveAttributesPredicate​(@Nonnull
                                                  Predicate<ProfileRequestContext> condition)
        Set a condition to determine whether attributes should be resolved during the profile.
        Parameters:
        condition - condition to set
      • isEncryptionOptional

        public boolean isEncryptionOptional​(@Nullable
                                            ProfileRequestContext profileRequestContext)
        Get whether encryption is optional in the face of a missing key, etc.
        Parameters:
        profileRequestContext - current profile request context
        Returns:
        true iff encryption is optional
      • setEncryptionOptional

        public void setEncryptionOptional​(boolean flag)
        Set whether encryption is optional in the face of a missing key, etc.
        Parameters:
        flag - flag to set
      • setEncryptionOptionalPredicate

        public void setEncryptionOptionalPredicate​(@Nonnull
                                                   Predicate<ProfileRequestContext> condition)
        Set a condition to determine whether encryption is optional in the face of a missing key, etc.
        Parameters:
        condition - condition to set
      • getDeniedUserInfoAttributes

        @Nonnull
        @NonnullElements
        @NotLive
        public Set<String> getDeniedUserInfoAttributes​(@Nullable
                                                       ProfileRequestContext profileRequestContext)
        Get the set of attribute IDs which should be omitted from the UserInfo token.

        Default behavior is to include all claims, but omiited claims also affect the set that may need to be embedded for recovery into the access/refresh tokens.

        Parameters:
        profileRequestContext - profile request context
        Returns:
        the attribute IDs to omit from UserInfo token
      • setDeniedUserInfoAttributes

        public void setDeniedUserInfoAttributes​(@Nullable @NonnullElements
                                                Collection<String> attributes)
        Set the set of attribute IDs which should be omitted from the UserInfo token.

        Default behavior is to include all claims, but omiited claims also affect the set that may need to be embedded for recovery into the access/refresh tokens.

        Parameters:
        attributes - the attribute IDs to omit from UserInfo token
      • setDeniedUserInfoAttributesLookupStrategy

        public void setDeniedUserInfoAttributesLookupStrategy​(@Nonnull
                                                              Function<ProfileRequestContext,​Set<String>> strategy)
        Set a lookup strategy for the set of attribute IDs which should be omitted from the UserInfo token.
        Parameters:
        strategy - lookup strategy