Class SAMLSOAPClientContextBuilder<InboundMessageType extends SAMLObject,​OutboundMessageType extends SAMLObject>

  • Type Parameters:
    InboundMessageType - the inbound message type
    OutboundMessageType - the outbound message type

    public class SAMLSOAPClientContextBuilder<InboundMessageType extends SAMLObject,​OutboundMessageType extends SAMLObject>
    extends Object
    Builder InOutOperationContext instances for SAML SOAP client use cases.
    • Field Detail

      • protocol

        private String protocol
        The SAML protocol in use.
      • selfEntityID

        private String selfEntityID
        The SAML self entityID.
      • peerEntityID

        private String peerEntityID
        The SAML peer entityID.
      • peerEntityRole

        private QName peerEntityRole
        The SAML peer entity role.
      • peerEntityDescriptor

        private EntityDescriptor peerEntityDescriptor
        The SAML peer EntityDescriptor.
      • peerRoleDescriptor

        private RoleDescriptor peerRoleDescriptor
        The SAML peer RoleDescriptor.
      • tlsCriteriaSetStrategy

        private Function<org.opensaml.messaging.context.MessageContext,​net.shibboleth.utilities.java.support.resolver.CriteriaSet> tlsCriteriaSetStrategy
        TLS CriteriaSet strategy.
      • pipelineName

        private String pipelineName
        SOAP client message pipeline name.
      • securityConfigurationProfileId

        private String securityConfigurationProfileId
        SOAP client security configuration profile ID.
    • Constructor Detail

      • SAMLSOAPClientContextBuilder

        public SAMLSOAPClientContextBuilder()
    • Method Detail

      • getOutboundMessage

        @Nullable
        public OutboundMessageType getOutboundMessage()
        Get the outbound message.
        Returns:
        the outbound message
      • getProtocol

        @Nullable
        public String getProtocol()
        Get the SAML protocol URI.
        Returns:
        the SAML protocol URI
      • getSelfEntityID

        @Nullable
        public String getSelfEntityID()
        Get the SAML self entityID.
        Returns:
        the SAML self entityID
      • getPeerEntityID

        @Nullable
        public String getPeerEntityID()
        Get the SAML peer entityID.
        Returns:
        the SAML peer entityID
      • getPeerEntityRole

        @Nullable
        public QName getPeerEntityRole()
        Get the SAML peer role.
        Returns:
        the SAML peer role
      • getPeerEntityDescriptor

        @Nullable
        public EntityDescriptor getPeerEntityDescriptor()
        Get the SAML peer EntityDscriptor.
        Returns:
        the SAML peer EntityDescriptor
      • getPeerRoleDescriptor

        @Nullable
        public RoleDescriptor getPeerRoleDescriptor()
        Get the SAML peer RoleDescriptor.
        Returns:
        the SAML peer RoleDescriptor
      • getTLSCriteriaSetStrategy

        @Nullable
        public Function<org.opensaml.messaging.context.MessageContext,​net.shibboleth.utilities.java.support.resolver.CriteriaSet> getTLSCriteriaSetStrategy()
        Get the TLS CriteriaSet strategy.
        Returns:
        the TLS CriteriaSet strategy, or null
      • setTLSCriteriaSetStrategy

        @Nonnull
        public SAMLSOAPClientContextBuilder<InboundMessageType,​OutboundMessageType> setTLSCriteriaSetStrategy​(@Nullable
                                                                                                                    Function<org.opensaml.messaging.context.MessageContext,​net.shibboleth.utilities.java.support.resolver.CriteriaSet> strategy)
        Set the TLS CriteriaSet strategy.
        Parameters:
        strategy - the strategy
        Returns:
        this builder instance
      • getPipelineName

        @Nullable
        public String getPipelineName()
        Get the SOAP client message pipeline name to use.
        Returns:
        the pipeline name, or null
      • getSecurityConfigurationProfileId

        @Nullable
        public String getSecurityConfigurationProfileId()
        Get the SOAP client security configuration profile ID to use.
        Returns:
        the client security configuration profile ID, or null
      • build

        public org.opensaml.messaging.context.InOutOperationContext build()
                                                                   throws org.opensaml.messaging.MessageException
        Build the new operation context.
        Returns:
        the operation context
        Throws:
        org.opensaml.messaging.MessageException - if any required data is not supplied and can not be derived from other supplied data
      • errorMissingData

        private void errorMissingData​(@Nonnull
                                      String details)
                               throws org.opensaml.messaging.MessageException
        Convenience method to report out an error due to missing required data.
        Parameters:
        details - the error details
        Throws:
        org.opensaml.messaging.MessageException - the error to be reported out