Class RequestContextBuilder

    • Field Detail

      • servletContext

        private javax.servlet.ServletContext servletContext
        The ServletContext used when building the request context.
      • httpRequest

        private javax.servlet.http.HttpServletRequest httpRequest
        The HttpServletRequest used when building the request context.
      • httpResponse

        private javax.servlet.http.HttpServletResponse httpResponse
        The HttpServletResponse used when building the request context.
      • inboundMessageId

        private String inboundMessageId
        The ID of the inbound message.
      • inboundMessageIssueInstant

        private Instant inboundMessageIssueInstant
        The issue instant of the inbound message.
      • inboundMessageIssuer

        private String inboundMessageIssuer
        The issuer of the inbound message.
      • inboundMessage

        private Object inboundMessage
        The inbound message.
      • outboundMessageId

        private String outboundMessageId
        The ID of the outbound message.
      • outboundMessageIssueInstant

        private Instant outboundMessageIssueInstant
        The issue instant of the outbound message.
      • outboundMessageIssuer

        private String outboundMessageIssuer
        The issuer of the outbound message.
      • outboundMessage

        private Object outboundMessage
        The outbound message.
      • relyingPartyProfileConfigurations

        private Collection<net.shibboleth.idp.profile.config.ProfileConfiguration> relyingPartyProfileConfigurations
        The profile configurations associated with the relying party.
    • Constructor Detail

      • RequestContextBuilder

        public RequestContextBuilder()
        Constructor.
      • RequestContextBuilder

        public RequestContextBuilder​(RequestContextBuilder prototype)
        Constructor.
        Parameters:
        prototype - prototype whose properties are copied onto this builder
    • Method Detail

      • setServletContext

        @Nonnull
        public RequestContextBuilder setServletContext​(@Nullable
                                                       javax.servlet.ServletContext context)
        Sets the ServletContext used when building the request context.
        Parameters:
        context - the ServletContext used when building the request context
        Returns:
        this builder
      • setHttpRequest

        @Nonnull
        public RequestContextBuilder setHttpRequest​(@Nullable
                                                    javax.servlet.http.HttpServletRequest request)
        Sets the HttpServletRequest used when building the request context.
        Parameters:
        request - the HttpServletRequest used when building the request context
        Returns:
        this builder
      • setHttpResponse

        @Nonnull
        public RequestContextBuilder setHttpResponse​(@Nullable
                                                     javax.servlet.http.HttpServletResponse response)
        Sets the HttpServletResponse used when building the request context.
        Parameters:
        response - the HttpServletResponse used when building the request context
        Returns:
        this builder
      • setInboundMessageId

        @Nonnull
        public RequestContextBuilder setInboundMessageId​(@Nullable
                                                         String id)
        Sets the ID of the inbound message.
        Parameters:
        id - ID of the inbound message
        Returns:
        this builder
      • setInboundMessageIssueInstant

        @Nonnull
        public RequestContextBuilder setInboundMessageIssueInstant​(@Nullable
                                                                   Instant instant)
        Sets the issue instant of the inbound message
        Parameters:
        instant - issue instant of the inbound message
        Returns:
        this builder
      • setInboundMessageIssuer

        @Nonnull
        public RequestContextBuilder setInboundMessageIssuer​(@Nullable
                                                             String issuer)
        Sets the issuer of the inbound message.
        Parameters:
        issuer - issuer of the inbound message
        Returns:
        this builder
      • setInboundMessage

        @Nonnull
        public RequestContextBuilder setInboundMessage​(@Nullable
                                                       Object message)
        Sets the inbound message.
        Parameters:
        message - the inbound message
        Returns:
        this builder
      • setOutboundMessageId

        @Nonnull
        public RequestContextBuilder setOutboundMessageId​(@Nullable
                                                          String id)
        Sets the ID of the outbound message.
        Parameters:
        id - ID of the outbound message
        Returns:
        this builder
      • setOutboundMessageIssueInstant

        @Nonnull
        public RequestContextBuilder setOutboundMessageIssueInstant​(@Nullable
                                                                    Instant instant)
        Sets the issue instant of the outbound message
        Parameters:
        instant - issue instant of the outbound message
        Returns:
        this builder
      • setOutboundMessageIssuer

        public RequestContextBuilder setOutboundMessageIssuer​(@Nullable
                                                              String issuer)
        Sets the issuer of the outbound message.
        Parameters:
        issuer - issuer of the outbound message
        Returns:
        this builder
      • setOutboundMessage

        @Nonnull
        public RequestContextBuilder setOutboundMessage​(@Nullable
                                                        Object message)
        Sets the outbound message.
        Parameters:
        message - the outbound message
        Returns:
        this builder
      • setRelyingPartyProfileConfigurations

        @Nonnull
        public RequestContextBuilder setRelyingPartyProfileConfigurations​(@Nullable
                                                                          Collection<net.shibboleth.idp.profile.config.ProfileConfiguration> configs)
        Sets the profile configurations associated with the relying party.
        Parameters:
        configs - profile configurations associated with the relying party
        Returns:
        this builder
      • buildProfileRequestContext

        @Nonnull
        public org.opensaml.profile.context.ProfileRequestContext buildProfileRequestContext()
                                                                                      throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
        Builds a ProfileRequestContext. The default implementation builds a ProfileRequestContext that contains a:
        Returns:
        the constructed {
        Throws:
        net.shibboleth.utilities.java.support.component.ComponentInitializationException - @link ProfileRequestContext
      • buildInboundMessageContext

        @Nonnull
        protected org.opensaml.messaging.context.MessageContext buildInboundMessageContext()
        Builds a inbound MessageContext. The default implementation builds a MessageContext that contains:
        Returns:
        the constructed MessageContext
      • buildOutboundMessageContext

        @Nonnull
        protected org.opensaml.messaging.context.MessageContext buildOutboundMessageContext()
        Builds a outbound MessageContext. The default implementation builds a MessageContext that contains:
        Returns:
        the constructed MessageContext
      • buildRelyingPartyContext

        @Nonnull
        protected net.shibboleth.idp.profile.context.RelyingPartyContext buildRelyingPartyContext​(@Nonnull
                                                                                                  org.opensaml.profile.context.ProfileRequestContext profileRequestContext)
                                                                                           throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
        Builds RelyingPartyContext. The default implementations builds a RelyingPartyContext with:
        Parameters:
        profileRequestContext - ...
        Returns:
        the constructed RelyingPartyContext
        Throws:
        net.shibboleth.utilities.java.support.component.ComponentInitializationException - ...
      • buildRelyingPartyConfiguration

        @Nonnull
        protected net.shibboleth.idp.relyingparty.RelyingPartyConfiguration buildRelyingPartyConfiguration()
                                                                                                    throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
        Builds a RelyingPartyConfiguration. The default implementation of this method builds a RelyingPartyConfiguration such that:
        Returns:
        the constructed RelyingPartyConfiguration
        Throws:
        net.shibboleth.utilities.java.support.component.ComponentInitializationException - ...
      • selectProfileConfiguration

        @Nullable
        protected net.shibboleth.idp.profile.config.ProfileConfiguration selectProfileConfiguration​(@Nonnull
                                                                                                    Map<String,​net.shibboleth.idp.profile.config.ProfileConfiguration> rpProfileConfigs)
        Selects the active profile configurations from the set of registered profile configuration from the relying party configuration built by buildRelyingPartyConfiguration(). The default implementation of this method simply returns the first value of the Map.values() collection.
        Parameters:
        rpProfileConfigs - the set of profile configurations associated with the constructed relying party
        Returns:
        the active ProfileConfiguration