Class BrowserSSOProfileConfiguration

    • Constructor Detail

      • BrowserSSOProfileConfiguration

        public BrowserSSOProfileConfiguration()
        Constructor.
      • BrowserSSOProfileConfiguration

        protected BrowserSSOProfileConfiguration​(@Nonnull @NotEmpty
                                                 String profileId)
        Constructor.
        Parameters:
        profileId - unique ID for this profile
    • Method Detail

      • 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
      • isIncludeAttributeStatement

        public boolean isIncludeAttributeStatement​(@Nullable
                                                   ProfileRequestContext profileRequestContext)
        Get whether responses to the authentication request should include an attribute statement.

        Default is true

        Parameters:
        profileRequestContext - current profile request context
        Returns:
        whether responses to the authentication request should include an attribute statement
      • setIncludeAttributeStatement

        public void setIncludeAttributeStatement​(boolean flag)
        Set whether responses to the authentication request should include an attribute statement.
        Parameters:
        flag - flag to set
      • setIncludeAttributeStatementPredicate

        public void setIncludeAttributeStatementPredicate​(@Nonnull
                                                          Predicate<ProfileRequestContext> condition)
        Set a condition to determine whether responses to the authentication request should include an attribute statement.
        Parameters:
        condition - condition to set
      • isForceAuthn

        public boolean isForceAuthn​(@Nullable
                                    ProfileRequestContext profileRequestContext)
        Get whether the authentication process should include a proof of user presence.
        Specified by:
        isForceAuthn in interface AuthenticationProfileConfiguration
        Parameters:
        profileRequestContext - current profile request context
        Returns:
        true iff authentication should require user presence
      • setForceAuthn

        public void setForceAuthn​(boolean flag)
        Set whether a fresh user presence proof should be required for this request.
        Parameters:
        flag - flag to set
      • setForceAuthnPredicate

        public void setForceAuthnPredicate​(@Nonnull
                                           Predicate<ProfileRequestContext> condition)
        Set a condition to determine whether a fresh user presence proof should be required for this request.
        Parameters:
        condition - condition to set
      • setDefaultAuthenticationMethods

        public void setDefaultAuthenticationMethods​(@Nullable @NonnullElements
                                                    Collection<AuthenticationMethodPrincipal> methods)
        Set the default authentication methods to use, expressed as custom principals.
        Parameters:
        methods - default authentication methods to use
      • setAuthenticationFlows

        public void setAuthenticationFlows​(@Nullable @NonnullElements
                                           Collection<String> flows)
        Set the authentication flows to use.
        Parameters:
        flows - flow identifiers to use
      • setAuthenticationFlowsLookupStrategy

        public void setAuthenticationFlowsLookupStrategy​(@Nonnull
                                                         Function<ProfileRequestContext,​Set<String>> strategy)
        Set a lookup strategy for the authentication flows to use.
        Parameters:
        strategy - lookup strategy
        Since:
        3.3.0
      • setPostAuthenticationFlows

        public void setPostAuthenticationFlows​(@Nullable @NonnullElements
                                               Collection<String> flows)
        Set the ordered collection of post-authentication interceptor flows to enable.
        Parameters:
        flows - flow identifiers to enable
      • setPostAuthenticationFlowsLookupStrategy

        public void setPostAuthenticationFlowsLookupStrategy​(@Nonnull
                                                             Function<ProfileRequestContext,​Collection<String>> strategy)
        Set a lookup strategy for the post-authentication interceptor flows to enable.
        Parameters:
        strategy - lookup strategy
        Since:
        3.3.0
      • setNameIDFormatPrecedence

        public void setNameIDFormatPrecedence​(@Nonnull @NonnullElements
                                              Collection<String> formats)
        Set the name identifier formats to use.
        Parameters:
        formats - name identifier formats to use
      • setNameIDFormatPrecedenceLookupStrategy

        public void setNameIDFormatPrecedenceLookupStrategy​(@Nonnull
                                                            Function<ProfileRequestContext,​Collection<String>> strategy)
        Set a lookup strategy for the name identifier formats to use.
        Parameters:
        strategy - lookup strategy
        Since:
        3.3.0
      • getProxyCount

        @Nullable
        public Integer getProxyCount​(@Nullable
                                     ProfileRequestContext profileRequestContext)
        Gets the maximum number of times an assertion may be proxied outbound and/or the maximum number of hops between the relying party and a proxied authentication authority inbound.
        Specified by:
        getProxyCount in interface AuthenticationProfileConfiguration
        Parameters:
        profileRequestContext - current profile request context
        Returns:
        maximum number of times an assertion or authentication may be proxied
      • setProxyCount

        public void setProxyCount​(@Nullable @NonNegative
                                  Integer count)
        Sets the maximum number of times an assertion may be proxied outbound and/or the maximum number of hops between the relying party and a proxied authentication authority inbound.
        Parameters:
        count - proxy count
        Since:
        4.0.0
      • setProxyCountLookupStrategy

        public void setProxyCountLookupStrategy​(@Nonnull
                                                Function<ProfileRequestContext,​Integer> strategy)
        Set a lookup strategy for the maximum number of times an assertion may be proxied outbound and/or the maximum number of hops between the relying party and a proxied authentication authority inbound.
        Parameters:
        strategy - lookup strategy
        Since:
        4.0.0