Class XMLCipher.Factory.CipherReferenceImpl

java.lang.Object
org.apache.xml.security.encryption.XMLCipher.Factory.CipherReferenceImpl
All Implemented Interfaces:
CipherReference
Enclosing class:
XMLCipher.Factory

private class XMLCipher.Factory.CipherReferenceImpl extends Object implements CipherReference
  • Field Details

    • referenceURI

      private String referenceURI
    • referenceTransforms

      private Transforms referenceTransforms
    • referenceNode

      private Attr referenceNode
  • Constructor Details

    • CipherReferenceImpl

      public CipherReferenceImpl(String uri)
      Parameters:
      uri -
    • CipherReferenceImpl

      public CipherReferenceImpl(Attr uri)
      Parameters:
      uri -
  • Method Details

    • getURI

      public String getURI()
      Returns an URI that contains an identifier that should be dereferenced.
      Specified by:
      getURI in interface CipherReference
      Returns:
      an URI that contains an identifier that should be dereferenced.
    • getURIAsAttr

      public Attr getURIAsAttr()
      Gets the URI as an Attribute node. Used to meld the CipherReference with the XMLSignature ResourceResolvers
      Specified by:
      getURIAsAttr in interface CipherReference
      Returns:
      the URI as an Attribute node
    • getTransforms

      public Transforms getTransforms()
      Returns the Transforms that specifies how to transform the URI to yield the appropriate cipher value.
      Specified by:
      getTransforms in interface CipherReference
      Returns:
      the transform that specifies how to transform the reference to yield the intended cipher value.
    • setTransforms

      public void setTransforms(Transforms transforms)
      Sets the Transforms that specifies how to transform the URI to yield the appropriate cipher value.
      Specified by:
      setTransforms in interface CipherReference
      Parameters:
      transforms - the set of Transforms that specifies how to transform the reference to yield the intended cipher value.
    • toElement

      Element toElement()