FileDocCategorySizeDatePackage
RetrievalMethod.javaAPI DocJava SE 6 API4584Tue Jun 10 00:23:02 BST 2008com.sun.org.apache.xml.internal.security.keys.content

RetrievalMethod

public class RetrievalMethod extends SignatureElementProxy implements KeyInfoContent
author
$Author: raul $

Fields Summary
static Logger
log
{@link java.util.logging} logging facility
public static final String
TYPE_DSA
DSA retrieval
public static final String
TYPE_RSA
RSA retrieval
public static final String
TYPE_PGP
PGP retrieval
public static final String
TYPE_SPKI
SPKI retrieval
public static final String
TYPE_MGMT
MGMT retrieval
public static final String
TYPE_X509
X509 retrieval
public static final String
TYPE_RAWX509
RAWX509 retrieval
Constructors Summary
public RetrievalMethod(Element element, String BaseURI)
Constructor RetrievalMethod

param
element
param
BaseURI
throws
XMLSecurityException

   //J+

               
       
             
      super(element, BaseURI);
   
public RetrievalMethod(Document doc, String URI, Transforms transforms, String Type)
Constructor RetrievalMethod

param
doc
param
URI
param
transforms
param
Type


      super(doc);

      this._constructionElement.setAttributeNS(null, Constants._ATT_URI, URI);

      if (Type != null) {
         this._constructionElement.setAttributeNS(null, Constants._ATT_TYPE, Type);
      }

      if (transforms != null) {
         this._constructionElement.appendChild(transforms.getElement());
         XMLUtils.addReturnToElement(this._constructionElement);
      }
   
Methods Summary
public java.lang.StringgetBaseLocalName()

inheritDoc

      return Constants._TAG_RETRIEVALMETHOD;
   
public com.sun.org.apache.xml.internal.security.transforms.TransformsgetTransforms()
Method getTransforms

throws
XMLSecurityException
return
the transforamitons


      try {
       Element transformsElem =
             XMLUtils.selectDsNode(this._constructionElement,                                                
                                                Constants
                                                   ._TAG_TRANSFORMS, 0);

         if (transformsElem != null) {
            return new Transforms(transformsElem, this._baseURI);
         }

         return null;
      } catch (XMLSignatureException ex) {
         throw new XMLSecurityException("empty", ex);
      }
   
public java.lang.StringgetType()

return
the type

      return this._constructionElement.getAttributeNS(null, Constants._ATT_TYPE);
   
public java.lang.StringgetURI()
Method getURI

return
URI string

      return this.getURIAttr().getNodeValue();
   
public org.w3c.dom.AttrgetURIAttr()
Method getURIAttr

return
the URI attribute

      return this._constructionElement.getAttributeNodeNS(null, Constants._ATT_URI);