XML Security, 1.6

com.ibm.xml.crypto.dsig.dom
Class RetrievalMethodImpl

java.lang.Object
  extended by com.ibm.xml.crypto.dsig.dom.XMLStructureImpl
      extended by com.ibm.xml.crypto.dsig.dom.URIReferenceImpl
          extended by com.ibm.xml.crypto.dsig.dom.RetrievalMethodImpl
All Implemented Interfaces:
DOMURIReference, RetrievalMethod, URIReference, XMLStructure

 class RetrievalMethodImpl
extends URIReferenceImpl
implements RetrievalMethod


Field Summary
(package private)  java.util.List transforms
           
 
Fields inherited from class com.ibm.xml.crypto.dsig.dom.URIReferenceImpl
signatureNode
 
Fields inherited from class com.ibm.xml.crypto.dsig.dom.XMLStructureImpl
afactory
 
Constructor Summary
RetrievalMethodImpl(AlgorithmFactory f, java.lang.String uri, java.lang.String type, java.util.List transforms)
           
 
Method Summary
 Data dereference(XMLCryptoContext context)
          Dereferences the KeyInfo information referenced by this RetrievalMethod and applies the specified Transforms.
 java.util.List getTransforms()
          Returns an unmodifiable list of Transforms of this RetrievalMethod.
 
Methods inherited from class com.ibm.xml.crypto.dsig.dom.URIReferenceImpl
getFactory, getHere, getType, getURI, setHere, setSignatureNode
 
Methods inherited from class com.ibm.xml.crypto.dsig.dom.XMLStructureImpl
isFeatureSupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.xml.crypto.dsig.keyinfo.RetrievalMethod
getURI
 
Methods inherited from interface javax.xml.crypto.URIReference
getType
 
Methods inherited from interface javax.xml.crypto.XMLStructure
isFeatureSupported
 

Field Detail

transforms

java.util.List transforms
Constructor Detail

RetrievalMethodImpl

RetrievalMethodImpl(AlgorithmFactory f,
                    java.lang.String uri,
                    java.lang.String type,
                    java.util.List transforms)
Method Detail

getTransforms

public java.util.List getTransforms()
Description copied from interface: RetrievalMethod
Returns an unmodifiable list of Transforms of this RetrievalMethod.

Specified by:
getTransforms in interface RetrievalMethod
Returns:
an unmodifiable list of Transform objects (may be empty but never null).

dereference

public Data dereference(XMLCryptoContext context)
                 throws URIReferenceException
Description copied from interface: RetrievalMethod
Dereferences the KeyInfo information referenced by this RetrievalMethod and applies the specified Transforms.

Specified by:
dereference in interface RetrievalMethod
Parameters:
context - an XMLCryptoContext that may contain additional useful information for dereferencing the URI. The context's baseURI and dereferencer parameters (if specified) are used to resolve and dereference this RetrievalMethod
Returns:
a Data object representing the raw contents of the KeyInfo information referenced by this RetrievalMethod. It is the caller's responsibility to convert the returned data to an appropriate KeyInfo object.
Throws:
URIReferenceException - if there is an error while dereferencing

XML Security, 1.6

Portions Copyright 2003, 2012 IBM Corporation.
Portions Copyright 2003, 2012 Oracle and/or its affiliates.