xmlsec-1.5.3

16:55:07.383 INFO  jd.cli.Main - Decompiling xmlsec-1.5.3.jar
package javax.xml.crypto;

import java.security.spec.AlgorithmParameterSpec;

public abstract interface AlgorithmMethod
{
  public abstract String getAlgorithm();
  
  public abstract AlgorithmParameterSpec getParameterSpec();
}

/* Location:
 * Qualified Name:     javax.xml.crypto.AlgorithmMethod
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto;

public abstract interface Data {}

/* Location:
 * Qualified Name:     javax.xml.crypto.Data
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto;

public class KeySelector$Purpose
{
  private final String name;
  public static final Purpose SIGN = new Purpose("sign");
  public static final Purpose VERIFY = new Purpose("verify");
  public static final Purpose ENCRYPT = new Purpose("encrypt");
  public static final Purpose DECRYPT = new Purpose("decrypt");
  
  private KeySelector$Purpose(String paramString)
  {
    name = paramString;
  }
  
  public String toString()
  {
    return name;
  }
}

/* Location:
 * Qualified Name:     javax.xml.crypto.KeySelector.Purpose
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto;

import java.security.Key;

class KeySelector$SingletonKeySelector$1
  implements KeySelectorResult
{
  KeySelector$SingletonKeySelector$1(KeySelector.SingletonKeySelector paramSingletonKeySelector) {}
  
  public Key getKey()
  {
    return KeySelector.SingletonKeySelector.access$000(this$0);
  }
}

/* Location:
 * Qualified Name:     javax.xml.crypto.KeySelector.SingletonKeySelector.1
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto;

import java.security.Key;
import javax.xml.crypto.dsig.keyinfo.KeyInfo;

class KeySelector$SingletonKeySelector
  extends KeySelector
{
  private final Key key;
  
  KeySelector$SingletonKeySelector(Key paramKey)
  {
    if (paramKey == null) {
      throw new NullPointerException();
    }
    key = paramKey;
  }
  
  public KeySelectorResult select(KeyInfo paramKeyInfo, KeySelector.Purpose paramPurpose, AlgorithmMethod paramAlgorithmMethod, XMLCryptoContext paramXMLCryptoContext)
    throws KeySelectorException
  {
    new KeySelectorResult()
    {
      public Key getKey()
      {
        return key;
      }
    };
  }
}

/* Location:
 * Qualified Name:     javax.xml.crypto.KeySelector.SingletonKeySelector
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto;

import java.security.Key;
import javax.xml.crypto.dsig.keyinfo.KeyInfo;

public abstract class KeySelector
{
  public abstract KeySelectorResult select(KeyInfo paramKeyInfo, Purpose paramPurpose, AlgorithmMethod paramAlgorithmMethod, XMLCryptoContext paramXMLCryptoContext)
    throws KeySelectorException;
  
  public static KeySelector singletonKeySelector(Key paramKey)
  {
    return new SingletonKeySelector(paramKey);
  }
  
  private static class SingletonKeySelector
    extends KeySelector
  {
    private final Key key;
    
    SingletonKeySelector(Key paramKey)
    {
      if (paramKey == null) {
        throw new NullPointerException();
      }
      key = paramKey;
    }
    
    public KeySelectorResult select(KeyInfo paramKeyInfo, KeySelector.Purpose paramPurpose, AlgorithmMethod paramAlgorithmMethod, XMLCryptoContext paramXMLCryptoContext)
      throws KeySelectorException
    {
      new KeySelectorResult()
      {
        public Key getKey()
        {
          return key;
        }
      };
    }
  }
  
  public static class Purpose
  {
    private final String name;
    public static final Purpose SIGN = new Purpose("sign");
    public static final Purpose VERIFY = new Purpose("verify");
    public static final Purpose ENCRYPT = new Purpose("encrypt");
    public static final Purpose DECRYPT = new Purpose("decrypt");
    
    private Purpose(String paramString)
    {
      name = paramString;
    }
    
    public String toString()
    {
      return name;
    }
  }
}

/* Location:
 * Qualified Name:     javax.xml.crypto.KeySelector
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto;

import java.io.PrintStream;
import java.io.PrintWriter;

public class KeySelectorException
  extends Exception
{
  private static final long serialVersionUID = -7480033639322531109L;
  private Throwable cause;
  
  public KeySelectorException() {}
  
  public KeySelectorException(String paramString)
  {
    super(paramString);
  }
  
  public KeySelectorException(String paramString, Throwable paramThrowable)
  {
    super(paramString);
    cause = paramThrowable;
  }
  
  public KeySelectorException(Throwable paramThrowable)
  {
    super(paramThrowable == null ? null : paramThrowable.toString());
    cause = paramThrowable;
  }
  
  public Throwable getCause()
  {
    return cause;
  }
  
  public void printStackTrace()
  {
    super.printStackTrace();
    if (cause != null) {
      cause.printStackTrace();
    }
  }
  
  public void printStackTrace(PrintStream paramPrintStream)
  {
    super.printStackTrace(paramPrintStream);
    if (cause != null) {
      cause.printStackTrace(paramPrintStream);
    }
  }
  
  public void printStackTrace(PrintWriter paramPrintWriter)
  {
    super.printStackTrace(paramPrintWriter);
    if (cause != null) {
      cause.printStackTrace(paramPrintWriter);
    }
  }
}

/* Location:
 * Qualified Name:     javax.xml.crypto.KeySelectorException
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto;

import java.security.Key;

public abstract interface KeySelectorResult
{
  public abstract Key getKey();
}

/* Location:
 * Qualified Name:     javax.xml.crypto.KeySelectorResult
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto;

import java.io.PrintStream;
import java.io.PrintWriter;

public class MarshalException
  extends Exception
{
  private static final long serialVersionUID = -863185580332643547L;
  private Throwable cause;
  
  public MarshalException() {}
  
  public MarshalException(String paramString)
  {
    super(paramString);
  }
  
  public MarshalException(String paramString, Throwable paramThrowable)
  {
    super(paramString);
    cause = paramThrowable;
  }
  
  public MarshalException(Throwable paramThrowable)
  {
    super(paramThrowable == null ? null : paramThrowable.toString());
    cause = paramThrowable;
  }
  
  public Throwable getCause()
  {
    return cause;
  }
  
  public void printStackTrace()
  {
    super.printStackTrace();
    cause.printStackTrace();
  }
  
  public void printStackTrace(PrintStream paramPrintStream)
  {
    super.printStackTrace(paramPrintStream);
    cause.printStackTrace(paramPrintStream);
  }
  
  public void printStackTrace(PrintWriter paramPrintWriter)
  {
    super.printStackTrace(paramPrintWriter);
    cause.printStackTrace(paramPrintWriter);
  }
}

/* Location:
 * Qualified Name:     javax.xml.crypto.MarshalException
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto;

import java.io.PrintStream;
import java.io.PrintWriter;

public class NoSuchMechanismException
  extends RuntimeException
{
  private static final long serialVersionUID = 4189669069570660166L;
  private Throwable cause;
  
  public NoSuchMechanismException() {}
  
  public NoSuchMechanismException(String paramString)
  {
    super(paramString);
  }
  
  public NoSuchMechanismException(String paramString, Throwable paramThrowable)
  {
    super(paramString);
    cause = paramThrowable;
  }
  
  public NoSuchMechanismException(Throwable paramThrowable)
  {
    super(paramThrowable == null ? null : paramThrowable.toString());
    cause = paramThrowable;
  }
  
  public Throwable getCause()
  {
    return cause;
  }
  
  public void printStackTrace()
  {
    super.printStackTrace();
    cause.printStackTrace();
  }
  
  public void printStackTrace(PrintStream paramPrintStream)
  {
    super.printStackTrace(paramPrintStream);
    cause.printStackTrace(paramPrintStream);
  }
  
  public void printStackTrace(PrintWriter paramPrintWriter)
  {
    super.printStackTrace(paramPrintWriter);
    cause.printStackTrace(paramPrintWriter);
  }
}

/* Location:
 * Qualified Name:     javax.xml.crypto.NoSuchMechanismException
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto;

import java.util.Iterator;

public abstract interface NodeSetData
  extends Data
{
  public abstract Iterator iterator();
}

/* Location:
 * Qualified Name:     javax.xml.crypto.NodeSetData
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto;

import java.io.InputStream;

public class OctetStreamData
  implements Data
{
  private InputStream octetStream;
  private String uri;
  private String mimeType;
  
  public OctetStreamData(InputStream paramInputStream)
  {
    if (paramInputStream == null) {
      throw new NullPointerException("octetStream is null");
    }
    octetStream = paramInputStream;
  }
  
  public OctetStreamData(InputStream paramInputStream, String paramString1, String paramString2)
  {
    if (paramInputStream == null) {
      throw new NullPointerException("octetStream is null");
    }
    octetStream = paramInputStream;
    uri = paramString1;
    mimeType = paramString2;
  }
  
  public InputStream getOctetStream()
  {
    return octetStream;
  }
  
  public String getURI()
  {
    return uri;
  }
  
  public String getMimeType()
  {
    return mimeType;
  }
}

/* Location:
 * Qualified Name:     javax.xml.crypto.OctetStreamData
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto;

public abstract interface URIDereferencer
{
  public abstract Data dereference(URIReference paramURIReference, XMLCryptoContext paramXMLCryptoContext)
    throws URIReferenceException;
}

/* Location:
 * Qualified Name:     javax.xml.crypto.URIDereferencer
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto;

public abstract interface URIReference
{
  public abstract String getURI();
  
  public abstract String getType();
}

/* Location:
 * Qualified Name:     javax.xml.crypto.URIReference
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto;

import java.io.PrintStream;
import java.io.PrintWriter;

public class URIReferenceException
  extends Exception
{
  private static final long serialVersionUID = 7173469703932561419L;
  private Throwable cause;
  private URIReference uriReference;
  
  public URIReferenceException() {}
  
  public URIReferenceException(String paramString)
  {
    super(paramString);
  }
  
  public URIReferenceException(String paramString, Throwable paramThrowable)
  {
    super(paramString);
    cause = paramThrowable;
  }
  
  public URIReferenceException(String paramString, Throwable paramThrowable, URIReference paramURIReference)
  {
    this(paramString, paramThrowable);
    if (paramURIReference == null) {
      throw new NullPointerException("uriReference cannot be null");
    }
    uriReference = paramURIReference;
  }
  
  public URIReferenceException(Throwable paramThrowable)
  {
    super(paramThrowable == null ? null : paramThrowable.toString());
    cause = paramThrowable;
  }
  
  public URIReference getURIReference()
  {
    return uriReference;
  }
  
  public Throwable getCause()
  {
    return cause;
  }
  
  public void printStackTrace()
  {
    super.printStackTrace();
    cause.printStackTrace();
  }
  
  public void printStackTrace(PrintStream paramPrintStream)
  {
    super.printStackTrace(paramPrintStream);
    cause.printStackTrace(paramPrintStream);
  }
  
  public void printStackTrace(PrintWriter paramPrintWriter)
  {
    super.printStackTrace(paramPrintWriter);
    cause.printStackTrace(paramPrintWriter);
  }
}

/* Location:
 * Qualified Name:     javax.xml.crypto.URIReferenceException
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto;

public abstract interface XMLCryptoContext
{
  public abstract String getBaseURI();
  
  public abstract void setBaseURI(String paramString);
  
  public abstract KeySelector getKeySelector();
  
  public abstract void setKeySelector(KeySelector paramKeySelector);
  
  public abstract URIDereferencer getURIDereferencer();
  
  public abstract void setURIDereferencer(URIDereferencer paramURIDereferencer);
  
  public abstract String getNamespacePrefix(String paramString1, String paramString2);
  
  public abstract String putNamespacePrefix(String paramString1, String paramString2);
  
  public abstract String getDefaultNamespacePrefix();
  
  public abstract void setDefaultNamespacePrefix(String paramString);
  
  public abstract Object setProperty(String paramString, Object paramObject);
  
  public abstract Object getProperty(String paramString);
  
  public abstract Object get(Object paramObject);
  
  public abstract Object put(Object paramObject1, Object paramObject2);
}

/* Location:
 * Qualified Name:     javax.xml.crypto.XMLCryptoContext
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto;

public abstract interface XMLStructure
{
  public abstract boolean isFeatureSupported(String paramString);
}

/* Location:
 * Qualified Name:     javax.xml.crypto.XMLStructure
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto.dom;

import java.net.URI;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import javax.xml.crypto.KeySelector;
import javax.xml.crypto.URIDereferencer;
import javax.xml.crypto.XMLCryptoContext;
import org.w3c.dom.Element;

public class DOMCryptoContext
  implements XMLCryptoContext
{
  private Map<String, String> nsMap = new HashMap();
  private Map<String, Element> idMap = new HashMap();
  private Map<Object, Object> objMap = new HashMap();
  private Map<String, Object> propMap = new HashMap();
  private String baseURI;
  private KeySelector ks;
  private URIDereferencer dereferencer;
  private String defaultPrefix;
  
  public String getNamespacePrefix(String paramString1, String paramString2)
  {
    if (paramString1 == null) {
      throw new NullPointerException("namespaceURI cannot be null");
    }
    String str = (String)nsMap.get(paramString1);
    return str != null ? str : paramString2;
  }
  
  public String putNamespacePrefix(String paramString1, String paramString2)
  {
    if (paramString1 == null) {
      throw new NullPointerException("namespaceURI is null");
    }
    return (String)nsMap.put(paramString1, paramString2);
  }
  
  public String getDefaultNamespacePrefix()
  {
    return defaultPrefix;
  }
  
  public void setDefaultNamespacePrefix(String paramString)
  {
    defaultPrefix = paramString;
  }
  
  public String getBaseURI()
  {
    return baseURI;
  }
  
  public void setBaseURI(String paramString)
  {
    if (paramString != null) {
      URI.create(paramString);
    }
    baseURI = paramString;
  }
  
  public URIDereferencer getURIDereferencer()
  {
    return dereferencer;
  }
  
  public void setURIDereferencer(URIDereferencer paramURIDereferencer)
  {
    dereferencer = paramURIDereferencer;
  }
  
  public Object getProperty(String paramString)
  {
    if (paramString == null) {
      throw new NullPointerException("name is null");
    }
    return propMap.get(paramString);
  }
  
  public Object setProperty(String paramString, Object paramObject)
  {
    if (paramString == null) {
      throw new NullPointerException("name is null");
    }
    return propMap.put(paramString, paramObject);
  }
  
  public KeySelector getKeySelector()
  {
    return ks;
  }
  
  public void setKeySelector(KeySelector paramKeySelector)
  {
    ks = paramKeySelector;
  }
  
  public Element getElementById(String paramString)
  {
    if (paramString == null) {
      throw new NullPointerException("idValue is null");
    }
    return (Element)idMap.get(paramString);
  }
  
  public void setIdAttributeNS(Element paramElement, String paramString1, String paramString2)
  {
    if (paramElement == null) {
      throw new NullPointerException("element is null");
    }
    if (paramString2 == null) {
      throw new NullPointerException("localName is null");
    }
    String str = paramElement.getAttributeNS(paramString1, paramString2);
    if ((str == null) || (str.length() == 0)) {
      throw new IllegalArgumentException(paramString2 + " is not an " + "attribute");
    }
    idMap.put(str, paramElement);
  }
  
  public Iterator iterator()
  {
    return Collections.unmodifiableMap(idMap).entrySet().iterator();
  }
  
  public Object get(Object paramObject)
  {
    return objMap.get(paramObject);
  }
  
  public Object put(Object paramObject1, Object paramObject2)
  {
    return objMap.put(paramObject1, paramObject2);
  }
}

/* Location:
 * Qualified Name:     javax.xml.crypto.dom.DOMCryptoContext
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto.dom;

import javax.xml.crypto.XMLStructure;
import org.w3c.dom.Node;

public class DOMStructure
  implements XMLStructure
{
  private final Node node;
  
  public DOMStructure(Node paramNode)
  {
    if (paramNode == null) {
      throw new NullPointerException("node cannot be null");
    }
    node = paramNode;
  }
  
  public Node getNode()
  {
    return node;
  }
  
  public boolean isFeatureSupported(String paramString)
  {
    if (paramString == null) {
      throw new NullPointerException();
    }
    return false;
  }
}

/* Location:
 * Qualified Name:     javax.xml.crypto.dom.DOMStructure
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto.dom;

import javax.xml.crypto.URIReference;
import org.w3c.dom.Node;

public abstract interface DOMURIReference
  extends URIReference
{
  public abstract Node getHere();
}

/* Location:
 * Qualified Name:     javax.xml.crypto.dom.DOMURIReference
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto.dsig;

import java.security.spec.AlgorithmParameterSpec;

public abstract interface CanonicalizationMethod
  extends Transform
{
  public static final String INCLUSIVE = "http://www.w3.org/TR/2001/REC-xml-c14n-20010315";
  public static final String INCLUSIVE_WITH_COMMENTS = "http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments";
  public static final String EXCLUSIVE = "http://www.w3.org/2001/10/xml-exc-c14n#";
  public static final String EXCLUSIVE_WITH_COMMENTS = "http://www.w3.org/2001/10/xml-exc-c14n#WithComments";
  
  public abstract AlgorithmParameterSpec getParameterSpec();
}

/* Location:
 * Qualified Name:     javax.xml.crypto.dsig.CanonicalizationMethod
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto.dsig;

import java.security.spec.AlgorithmParameterSpec;
import javax.xml.crypto.AlgorithmMethod;
import javax.xml.crypto.XMLStructure;

public abstract interface DigestMethod
  extends XMLStructure, AlgorithmMethod
{
  public static final String SHA1 = "http://www.w3.org/2000/09/xmldsig#sha1";
  public static final String SHA256 = "http://www.w3.org/2001/04/xmlenc#sha256";
  public static final String SHA512 = "http://www.w3.org/2001/04/xmlenc#sha512";
  public static final String RIPEMD160 = "http://www.w3.org/2001/04/xmlenc#ripemd160";
  
  public abstract AlgorithmParameterSpec getParameterSpec();
}

/* Location:
 * Qualified Name:     javax.xml.crypto.dsig.DigestMethod
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto.dsig;

import java.util.List;
import javax.xml.crypto.XMLStructure;

public abstract interface Manifest
  extends XMLStructure
{
  public static final String TYPE = "http://www.w3.org/2000/09/xmldsig#Manifest";
  
  public abstract String getId();
  
  public abstract List getReferences();
}

/* Location:
 * Qualified Name:     javax.xml.crypto.dsig.Manifest
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto.dsig;

import java.io.InputStream;
import java.util.List;
import javax.xml.crypto.Data;
import javax.xml.crypto.URIReference;
import javax.xml.crypto.XMLStructure;

public abstract interface Reference
  extends URIReference, XMLStructure
{
  public abstract List getTransforms();
  
  public abstract DigestMethod getDigestMethod();
  
  public abstract String getId();
  
  public abstract byte[] getDigestValue();
  
  public abstract byte[] getCalculatedDigestValue();
  
  public abstract boolean validate(XMLValidateContext paramXMLValidateContext)
    throws XMLSignatureException;
  
  public abstract Data getDereferencedData();
  
  public abstract InputStream getDigestInputStream();
}

/* Location:
 * Qualified Name:     javax.xml.crypto.dsig.Reference
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto.dsig;

import java.security.spec.AlgorithmParameterSpec;
import javax.xml.crypto.AlgorithmMethod;
import javax.xml.crypto.XMLStructure;

public abstract interface SignatureMethod
  extends XMLStructure, AlgorithmMethod
{
  public static final String DSA_SHA1 = "http://www.w3.org/2000/09/xmldsig#dsa-sha1";
  public static final String RSA_SHA1 = "http://www.w3.org/2000/09/xmldsig#rsa-sha1";
  public static final String HMAC_SHA1 = "http://www.w3.org/2000/09/xmldsig#hmac-sha1";
  
  public abstract AlgorithmParameterSpec getParameterSpec();
}

/* Location:
 * Qualified Name:     javax.xml.crypto.dsig.SignatureMethod
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto.dsig;

import java.util.List;
import javax.xml.crypto.XMLStructure;

public abstract interface SignatureProperties
  extends XMLStructure
{
  public static final String TYPE = "http://www.w3.org/2000/09/xmldsig#SignatureProperties";
  
  public abstract String getId();
  
  public abstract List getProperties();
}

/* Location:
 * Qualified Name:     javax.xml.crypto.dsig.SignatureProperties
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto.dsig;

import java.util.List;
import javax.xml.crypto.XMLStructure;

public abstract interface SignatureProperty
  extends XMLStructure
{
  public abstract String getTarget();
  
  public abstract String getId();
  
  public abstract List getContent();
}

/* Location:
 * Qualified Name:     javax.xml.crypto.dsig.SignatureProperty
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto.dsig;

import java.io.InputStream;
import java.util.List;
import javax.xml.crypto.XMLStructure;

public abstract interface SignedInfo
  extends XMLStructure
{
  public abstract CanonicalizationMethod getCanonicalizationMethod();
  
  public abstract SignatureMethod getSignatureMethod();
  
  public abstract List getReferences();
  
  public abstract String getId();
  
  public abstract InputStream getCanonicalizedData();
}

/* Location:
 * Qualified Name:     javax.xml.crypto.dsig.SignedInfo
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto.dsig;

import java.io.OutputStream;
import java.security.spec.AlgorithmParameterSpec;
import javax.xml.crypto.AlgorithmMethod;
import javax.xml.crypto.Data;
import javax.xml.crypto.XMLCryptoContext;
import javax.xml.crypto.XMLStructure;

public abstract interface Transform
  extends XMLStructure, AlgorithmMethod
{
  public static final String BASE64 = "http://www.w3.org/2000/09/xmldsig#base64";
  public static final String ENVELOPED = "http://www.w3.org/2000/09/xmldsig#enveloped-signature";
  public static final String XPATH = "http://www.w3.org/TR/1999/REC-xpath-19991116";
  public static final String XPATH2 = "http://www.w3.org/2002/06/xmldsig-filter2";
  public static final String XSLT = "http://www.w3.org/TR/1999/REC-xslt-19991116";
  
  public abstract AlgorithmParameterSpec getParameterSpec();
  
  public abstract Data transform(Data paramData, XMLCryptoContext paramXMLCryptoContext)
    throws TransformException;
  
  public abstract Data transform(Data paramData, XMLCryptoContext paramXMLCryptoContext, OutputStream paramOutputStream)
    throws TransformException;
}

/* Location:
 * Qualified Name:     javax.xml.crypto.dsig.Transform
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto.dsig;

import java.io.PrintStream;
import java.io.PrintWriter;

public class TransformException
  extends Exception
{
  private static final long serialVersionUID = 5082634801360427800L;
  private Throwable cause;
  
  public TransformException() {}
  
  public TransformException(String paramString)
  {
    super(paramString);
  }
  
  public TransformException(String paramString, Throwable paramThrowable)
  {
    super(paramString);
    cause = paramThrowable;
  }
  
  public TransformException(Throwable paramThrowable)
  {
    super(paramThrowable == null ? null : paramThrowable.toString());
    cause = paramThrowable;
  }
  
  public Throwable getCause()
  {
    return cause;
  }
  
  public void printStackTrace()
  {
    super.printStackTrace();
    if (cause != null) {
      cause.printStackTrace();
    }
  }
  
  public void printStackTrace(PrintStream paramPrintStream)
  {
    super.printStackTrace(paramPrintStream);
    if (cause != null) {
      cause.printStackTrace(paramPrintStream);
    }
  }
  
  public void printStackTrace(PrintWriter paramPrintWriter)
  {
    super.printStackTrace(paramPrintWriter);
    if (cause != null) {
      cause.printStackTrace(paramPrintWriter);
    }
  }
}

/* Location:
 * Qualified Name:     javax.xml.crypto.dsig.TransformException
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto.dsig;

import java.security.InvalidAlgorithmParameterException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.security.Provider;
import java.security.Provider.Service;
import java.security.Security;
import java.util.HashMap;
import java.util.Map;
import javax.xml.crypto.MarshalException;
import javax.xml.crypto.XMLCryptoContext;
import javax.xml.crypto.XMLStructure;
import javax.xml.crypto.dsig.spec.TransformParameterSpec;

public abstract class TransformService
  implements Transform
{
  private String algorithm;
  private String mechanism;
  private Provider provider;
  
  public static TransformService getInstance(String paramString1, String paramString2)
    throws NoSuchAlgorithmException
  {
    if ((paramString2 == null) || (paramString1 == null)) {
      throw new NullPointerException();
    }
    return findInstance(paramString1, paramString2, null);
  }
  
  public static TransformService getInstance(String paramString1, String paramString2, Provider paramProvider)
    throws NoSuchAlgorithmException
  {
    if ((paramString2 == null) || (paramString1 == null) || (paramProvider == null)) {
      throw new NullPointerException();
    }
    return findInstance(paramString1, paramString2, paramProvider);
  }
  
  public static TransformService getInstance(String paramString1, String paramString2, String paramString3)
    throws NoSuchAlgorithmException, NoSuchProviderException
  {
    if ((paramString2 == null) || (paramString1 == null) || (paramString3 == null)) {
      throw new NullPointerException();
    }
    Provider localProvider = Security.getProvider(paramString3);
    if (localProvider == null) {
      throw new NoSuchProviderException("cannot find provider named " + paramString3);
    }
    return findInstance(paramString1, paramString2, localProvider);
  }
  
  private static TransformService findInstance(String paramString1, String paramString2, Provider paramProvider)
    throws NoSuchAlgorithmException
  {
    if (paramProvider == null) {
      paramProvider = getProvider("TransformService", paramString1, paramString2);
    }
    Provider.Service localService = paramProvider.getService("TransformService", paramString1);
    if (localService == null) {
      throw new NoSuchAlgorithmException("no such algorithm: " + paramString1 + " for provider " + paramProvider.getName());
    }
    TransformService localTransformService = (TransformService)localService.newInstance(null);
    algorithm = paramString1;
    mechanism = paramString2;
    provider = paramProvider;
    return localTransformService;
  }
  
  private static Provider getProvider(String paramString1, String paramString2, String paramString3)
    throws NoSuchAlgorithmException
  {
    HashMap localHashMap = new HashMap();
    localHashMap.put(paramString1 + "." + paramString2, "");
    localHashMap.put(paramString1 + "." + paramString2 + " " + "MechanismType", paramString3);
    Provider[] arrayOfProvider = Security.getProviders(localHashMap);
    if (arrayOfProvider == null)
    {
      if (paramString3.equals("DOM"))
      {
        localHashMap.clear();
        localHashMap.put(paramString1 + "." + paramString2, "");
        arrayOfProvider = Security.getProviders(localHashMap);
        if (arrayOfProvider != null) {
          return arrayOfProvider[0];
        }
      }
      throw new NoSuchAlgorithmException("Algorithm type " + paramString2 + " not available");
    }
    return arrayOfProvider[0];
  }
  
  public final String getMechanismType()
  {
    return mechanism;
  }
  
  public final String getAlgorithm()
  {
    return algorithm;
  }
  
  public final Provider getProvider()
  {
    return provider;
  }
  
  public abstract void init(TransformParameterSpec paramTransformParameterSpec)
    throws InvalidAlgorithmParameterException;
  
  public abstract void marshalParams(XMLStructure paramXMLStructure, XMLCryptoContext paramXMLCryptoContext)
    throws MarshalException;
  
  public abstract void init(XMLStructure paramXMLStructure, XMLCryptoContext paramXMLCryptoContext)
    throws InvalidAlgorithmParameterException;
}

/* Location:
 * Qualified Name:     javax.xml.crypto.dsig.TransformService
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto.dsig;

import java.util.List;
import javax.xml.crypto.XMLStructure;

public abstract interface XMLObject
  extends XMLStructure
{
  public static final String TYPE = "http://www.w3.org/2000/09/xmldsig#Object";
  
  public abstract List getContent();
  
  public abstract String getId();
  
  public abstract String getMimeType();
  
  public abstract String getEncoding();
}

/* Location:
 * Qualified Name:     javax.xml.crypto.dsig.XMLObject
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto.dsig;

import javax.xml.crypto.XMLCryptoContext;

public abstract interface XMLSignContext
  extends XMLCryptoContext
{}

/* Location:
 * Qualified Name:     javax.xml.crypto.dsig.XMLSignContext
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto.dsig;

import javax.xml.crypto.XMLStructure;

public abstract interface XMLSignature$SignatureValue
  extends XMLStructure
{
  public abstract String getId();
  
  public abstract byte[] getValue();
  
  public abstract boolean validate(XMLValidateContext paramXMLValidateContext)
    throws XMLSignatureException;
}

/* Location:
 * Qualified Name:     javax.xml.crypto.dsig.XMLSignature.SignatureValue
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto.dsig;

import java.util.List;
import javax.xml.crypto.KeySelectorResult;
import javax.xml.crypto.MarshalException;
import javax.xml.crypto.XMLStructure;
import javax.xml.crypto.dsig.keyinfo.KeyInfo;

public abstract interface XMLSignature
  extends XMLStructure
{
  public static final String XMLNS = "http://www.w3.org/2000/09/xmldsig#";
  
  public abstract boolean validate(XMLValidateContext paramXMLValidateContext)
    throws XMLSignatureException;
  
  public abstract KeyInfo getKeyInfo();
  
  public abstract SignedInfo getSignedInfo();
  
  public abstract List getObjects();
  
  public abstract String getId();
  
  public abstract SignatureValue getSignatureValue();
  
  public abstract void sign(XMLSignContext paramXMLSignContext)
    throws MarshalException, XMLSignatureException;
  
  public abstract KeySelectorResult getKeySelectorResult();
  
  public static abstract interface SignatureValue
    extends XMLStructure
  {
    public abstract String getId();
    
    public abstract byte[] getValue();
    
    public abstract boolean validate(XMLValidateContext paramXMLValidateContext)
      throws XMLSignatureException;
  }
}

/* Location:
 * Qualified Name:     javax.xml.crypto.dsig.XMLSignature
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto.dsig;

import java.io.PrintStream;
import java.io.PrintWriter;

public class XMLSignatureException
  extends Exception
{
  private static final long serialVersionUID = -3438102491013869995L;
  private Throwable cause;
  
  public XMLSignatureException() {}
  
  public XMLSignatureException(String paramString)
  {
    super(paramString);
  }
  
  public XMLSignatureException(String paramString, Throwable paramThrowable)
  {
    super(paramString);
    cause = paramThrowable;
  }
  
  public XMLSignatureException(Throwable paramThrowable)
  {
    super(paramThrowable == null ? null : paramThrowable.toString());
    cause = paramThrowable;
  }
  
  public Throwable getCause()
  {
    return cause;
  }
  
  public void printStackTrace()
  {
    super.printStackTrace();
    if (cause != null) {
      cause.printStackTrace();
    }
  }
  
  public void printStackTrace(PrintStream paramPrintStream)
  {
    super.printStackTrace(paramPrintStream);
    if (cause != null) {
      cause.printStackTrace(paramPrintStream);
    }
  }
  
  public void printStackTrace(PrintWriter paramPrintWriter)
  {
    super.printStackTrace(paramPrintWriter);
    if (cause != null) {
      cause.printStackTrace(paramPrintWriter);
    }
  }
}

/* Location:
 * Qualified Name:     javax.xml.crypto.dsig.XMLSignatureException
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto.dsig;

import java.security.InvalidAlgorithmParameterException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.security.Provider;
import java.security.Provider.Service;
import java.security.Security;
import java.util.List;
import javax.xml.crypto.Data;
import javax.xml.crypto.MarshalException;
import javax.xml.crypto.NoSuchMechanismException;
import javax.xml.crypto.URIDereferencer;
import javax.xml.crypto.XMLStructure;
import javax.xml.crypto.dsig.keyinfo.KeyInfo;
import javax.xml.crypto.dsig.keyinfo.KeyInfoFactory;
import javax.xml.crypto.dsig.spec.C14NMethodParameterSpec;
import javax.xml.crypto.dsig.spec.DigestMethodParameterSpec;
import javax.xml.crypto.dsig.spec.SignatureMethodParameterSpec;
import javax.xml.crypto.dsig.spec.TransformParameterSpec;

public abstract class XMLSignatureFactory
{
  private String mechanismType;
  private Provider provider;
  
  public static XMLSignatureFactory getInstance(String paramString)
  {
    if (paramString == null) {
      throw new NullPointerException("mechanismType cannot be null");
    }
    return findInstance(paramString, null);
  }
  
  private static XMLSignatureFactory findInstance(String paramString, Provider paramProvider)
  {
    if (paramProvider == null) {
      paramProvider = getProvider("XMLSignatureFactory", paramString);
    }
    Provider.Service localService = paramProvider.getService("XMLSignatureFactory", paramString);
    if (localService == null) {
      throw new NoSuchMechanismException("Cannot find " + paramString + " mechanism type");
    }
    try
    {
      XMLSignatureFactory localXMLSignatureFactory = (XMLSignatureFactory)localService.newInstance(null);
      mechanismType = paramString;
      provider = paramProvider;
      return localXMLSignatureFactory;
    }
    catch (NoSuchAlgorithmException localNoSuchAlgorithmException)
    {
      throw new NoSuchMechanismException("Cannot find " + paramString + " mechanism type", localNoSuchAlgorithmException);
    }
  }
  
  private static Provider getProvider(String paramString1, String paramString2)
  {
    Provider[] arrayOfProvider = Security.getProviders(paramString1 + "." + paramString2);
    if (arrayOfProvider == null) {
      throw new NoSuchMechanismException("Mechanism type " + paramString2 + " not available");
    }
    return arrayOfProvider[0];
  }
  
  public static XMLSignatureFactory getInstance(String paramString, Provider paramProvider)
  {
    if (paramString == null) {
      throw new NullPointerException("mechanismType cannot be null");
    }
    if (paramProvider == null) {
      throw new NullPointerException("provider cannot be null");
    }
    return findInstance(paramString, paramProvider);
  }
  
  public static XMLSignatureFactory getInstance(String paramString1, String paramString2)
    throws NoSuchProviderException
  {
    if (paramString1 == null) {
      throw new NullPointerException("mechanismType cannot be null");
    }
    if (paramString2 == null) {
      throw new NullPointerException("provider cannot be null");
    }
    Provider localProvider = Security.getProvider(paramString2);
    if (localProvider == null) {
      throw new NoSuchProviderException("cannot find provider named " + paramString2);
    }
    return findInstance(paramString1, localProvider);
  }
  
  public static XMLSignatureFactory getInstance()
  {
    return getInstance("DOM");
  }
  
  public final String getMechanismType()
  {
    return mechanismType;
  }
  
  public final Provider getProvider()
  {
    return provider;
  }
  
  public abstract XMLSignature newXMLSignature(SignedInfo paramSignedInfo, KeyInfo paramKeyInfo);
  
  public abstract XMLSignature newXMLSignature(SignedInfo paramSignedInfo, KeyInfo paramKeyInfo, List paramList, String paramString1, String paramString2);
  
  public abstract Reference newReference(String paramString, DigestMethod paramDigestMethod);
  
  public abstract Reference newReference(String paramString1, DigestMethod paramDigestMethod, List paramList, String paramString2, String paramString3);
  
  public abstract Reference newReference(String paramString1, DigestMethod paramDigestMethod, List paramList, String paramString2, String paramString3, byte[] paramArrayOfByte);
  
  public abstract Reference newReference(String paramString1, DigestMethod paramDigestMethod, List paramList1, Data paramData, List paramList2, String paramString2, String paramString3);
  
  public abstract SignedInfo newSignedInfo(CanonicalizationMethod paramCanonicalizationMethod, SignatureMethod paramSignatureMethod, List paramList);
  
  public abstract SignedInfo newSignedInfo(CanonicalizationMethod paramCanonicalizationMethod, SignatureMethod paramSignatureMethod, List paramList, String paramString);
  
  public abstract XMLObject newXMLObject(List paramList, String paramString1, String paramString2, String paramString3);
  
  public abstract Manifest newManifest(List paramList);
  
  public abstract Manifest newManifest(List paramList, String paramString);
  
  public abstract SignatureProperty newSignatureProperty(List paramList, String paramString1, String paramString2);
  
  public abstract SignatureProperties newSignatureProperties(List paramList, String paramString);
  
  public abstract DigestMethod newDigestMethod(String paramString, DigestMethodParameterSpec paramDigestMethodParameterSpec)
    throws NoSuchAlgorithmException, InvalidAlgorithmParameterException;
  
  public abstract SignatureMethod newSignatureMethod(String paramString, SignatureMethodParameterSpec paramSignatureMethodParameterSpec)
    throws NoSuchAlgorithmException, InvalidAlgorithmParameterException;
  
  public abstract Transform newTransform(String
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2019. Infinite Loop Ltd