Class SAMLBinding

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.opensaml.ws.message.decoder.MessageDecoder decoder  
      protected org.opensaml.ws.message.encoder.MessageEncoder encoder  
      static org.opensaml.common.binding.decoding.URIComparator uriComparator
      URIComparator that strips scheme to avoid issues with reverse proxies
    • Constructor Summary

      Constructors 
      Constructor Description
      SAMLBinding​(org.opensaml.ws.message.decoder.MessageDecoder decoder, org.opensaml.ws.message.encoder.MessageEncoder encoder)  
    • Field Detail

      • decoder

        protected org.opensaml.ws.message.decoder.MessageDecoder decoder
      • encoder

        protected org.opensaml.ws.message.encoder.MessageEncoder encoder
      • uriComparator

        public static final org.opensaml.common.binding.decoding.URIComparator uriComparator
        URIComparator that strips scheme to avoid issues with reverse proxies
    • Constructor Detail

      • SAMLBinding

        public SAMLBinding​(org.opensaml.ws.message.decoder.MessageDecoder decoder,
                           org.opensaml.ws.message.encoder.MessageEncoder encoder)
    • Method Detail

      • decode

        public void decode​(org.opensaml.ws.message.MessageContext context)
                    throws org.opensaml.xml.security.SecurityException,
                           org.opensaml.ws.message.decoder.MessageDecodingException
        Decodes the given message.
        Parameters:
        context - the message to decode
        Throws:
        org.opensaml.xml.security.SecurityException
        org.opensaml.ws.message.decoder.MessageDecodingException
      • encode

        public void encode​(org.opensaml.ws.message.MessageContext context)
                    throws org.opensaml.ws.message.encoder.MessageEncodingException
        Encodes the given message.
        Parameters:
        context - the message to encode
        Throws:
        org.opensaml.ws.message.encoder.MessageEncodingException
      • getBindingURI

        public abstract String getBindingURI()
        Returns the URI that identifies this binding.
        Returns:
        the URI
      • supports

        public abstract boolean supports​(org.opensaml.ws.transport.InTransport transport)
        Checks if this binding can be used to extract the message from the request.
        Returns:
        true if this binding supports the transport
      • supports

        public abstract boolean supports​(org.opensaml.ws.transport.OutTransport transport)
        Checks if this binding can use the given transport to send a message
        Returns:
        true if this binding supports the transport