java.lang.Object
org.apache.xml.security.utils.resolver.ResourceResolverSpi
com.sun.xml.wss.impl.resolver.URIResolver

public class URIResolver extends org.apache.xml.security.utils.resolver.ResourceResolverSpi
This resolver is used for resolving URIs. Resolves URLs that refers to attachments that has a (1) Content-ID or a (2) Content-Location MIME header. In case of Content-Location, the URL may require resolution to determine the referenced attachment [RFC2557]. Also resolves (3) URL's that are Ids on XML elements within the SOAPMessage.
Author:
XWS-Security Team
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final Logger
     

    Fields inherited from class org.apache.xml.security.utils.resolver.ResourceResolverSpi

    properties
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    URIResolver(jakarta.xml.soap.SOAPMessage soapMsg)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    engineCanResolve(Attr uri, String baseURI)
    Method engineCanResolve
    boolean
    engineCanResolveURI(org.apache.xml.security.utils.resolver.ResourceResolverContext rrc)
     
    org.apache.xml.security.signature.XMLSignatureInput
    engineResolve(Attr uri, String baseURI)
    Method engineResolve
    org.apache.xml.security.signature.XMLSignatureInput
    engineResolveURI(org.apache.xml.security.utils.resolver.ResourceResolverContext rrc)
     
     
    static String
    Method getResolverName
    void
    setSOAPMessage(jakarta.xml.soap.SOAPMessage soapMsg)
     

    Methods inherited from class org.apache.xml.security.utils.resolver.ResourceResolverSpi

    engineAddProperies, engineGetProperty, engineGetPropertyKeys, engineIsThreadSafe, engineSetProperty, fixURI, understandsProperty

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • log

      protected static final Logger log
  • Constructor Details

    • URIResolver

      public URIResolver()
    • URIResolver

      public URIResolver(jakarta.xml.soap.SOAPMessage soapMsg)
  • Method Details

    • setSOAPMessage

      public void setSOAPMessage(jakarta.xml.soap.SOAPMessage soapMsg)
    • getResolverName

      public static String getResolverName()
      Method getResolverName
      Returns:
      The resolver implementation class name
    • engineResolve

      public org.apache.xml.security.signature.XMLSignatureInput engineResolve(Attr uri, String baseURI) throws org.apache.xml.security.utils.resolver.ResourceResolverException
      Method engineResolve
      Returns:
      XMLSignatureInput
      Throws:
      org.apache.xml.security.utils.resolver.ResourceResolverException
    • engineCanResolve

      public boolean engineCanResolve(Attr uri, String baseURI)
      Method engineCanResolve
      Returns:
      true if uri node can be resolved, false otherwise
    • getNamespaceContext

      public NamespaceContext getNamespaceContext(Document doc)
    • engineResolveURI

      public org.apache.xml.security.signature.XMLSignatureInput engineResolveURI(org.apache.xml.security.utils.resolver.ResourceResolverContext rrc) throws org.apache.xml.security.utils.resolver.ResourceResolverException
      Specified by:
      engineResolveURI in class org.apache.xml.security.utils.resolver.ResourceResolverSpi
      Throws:
      org.apache.xml.security.utils.resolver.ResourceResolverException
    • engineCanResolveURI

      public boolean engineCanResolveURI(org.apache.xml.security.utils.resolver.ResourceResolverContext rrc)
      Specified by:
      engineCanResolveURI in class org.apache.xml.security.utils.resolver.ResourceResolverSpi