xmlsec-1.4.5

16:55:06.489 INFO  jd.cli.Main - Decompiling xmlsec-1.4.5.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: 1.4 (48.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: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto;

import java.security.Key;

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

/* Location:
 * Qualified Name:     javax.xml.crypto.KeySelector.1
 * Java Class Version: 1.4 (48.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: 1.4 (48.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
  {
    return new KeySelector.1(this);
  }
}

/* Location:
 * Qualified Name:     javax.xml.crypto.KeySelector.SingletonKeySelector
 * Java Class Version: 1.4 (48.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
    {
      return new KeySelector.1(this);
    }
  }
  
  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: 1.4 (48.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();
  }
  
  public void printStackTrace(PrintStream paramPrintStream)
  {
    super.printStackTrace(paramPrintStream);
  }
  
  public void printStackTrace(PrintWriter paramPrintWriter)
  {
    super.printStackTrace(paramPrintWriter);
  }
}

/* Location:
 * Qualified Name:     javax.xml.crypto.KeySelectorException
 * Java Class Version: 1.4 (48.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: 1.4 (48.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();
  }
  
  public void printStackTrace(PrintStream paramPrintStream)
  {
    super.printStackTrace(paramPrintStream);
  }
  
  public void printStackTrace(PrintWriter paramPrintWriter)
  {
    super.printStackTrace(paramPrintWriter);
  }
}

/* Location:
 * Qualified Name:     javax.xml.crypto.MarshalException
 * Java Class Version: 1.4 (48.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();
  }
  
  public void printStackTrace(PrintStream paramPrintStream)
  {
    super.printStackTrace(paramPrintStream);
  }
  
  public void printStackTrace(PrintWriter paramPrintWriter)
  {
    super.printStackTrace(paramPrintWriter);
  }
}

/* Location:
 * Qualified Name:     javax.xml.crypto.NoSuchMechanismException
 * Java Class Version: 1.4 (48.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: 1.4 (48.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: 1.4 (48.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: 1.4 (48.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: 1.4 (48.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();
  }
  
  public void printStackTrace(PrintStream paramPrintStream)
  {
    super.printStackTrace(paramPrintStream);
  }
  
  public void printStackTrace(PrintWriter paramPrintWriter)
  {
    super.printStackTrace(paramPrintWriter);
  }
}

/* Location:
 * Qualified Name:     javax.xml.crypto.URIReferenceException
 * Java Class Version: 1.4 (48.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: 1.4 (48.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: 1.4 (48.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 HashMap nsMap = new HashMap();
  private HashMap idMap = new HashMap();
  private HashMap objMap = new HashMap();
  private String baseURI;
  private KeySelector ks;
  private URIDereferencer dereferencer;
  private HashMap propMap = new HashMap();
  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: 1.4 (48.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: 1.4 (48.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: 1.4 (48.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: 1.4 (48.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: 1.4 (48.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: 1.4 (48.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: 1.4 (48.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: 1.4 (48.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: 1.4 (48.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: 1.4 (48.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: 1.4 (48.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: 1.4 (48.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: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto.dsig;

import java.util.Map.Entry;

class TransformService$MechanismMapEntry
  implements Map.Entry
{
  private final String mechanism;
  private final String key;
  
  TransformService$MechanismMapEntry(String paramString1, String paramString2)
  {
    mechanism = paramString2;
    key = ("TransformService." + paramString1 + " MechanismType");
  }
  
  public boolean equals(Object paramObject)
  {
    if (!(paramObject instanceof Map.Entry)) {
      return false;
    }
    Map.Entry localEntry = (Map.Entry)paramObject;
    return (getKey() == null ? localEntry.getKey() == null : getKey().equals(localEntry.getKey())) && (getValue() == null ? localEntry.getValue() == null : getValue().equals(localEntry.getValue()));
  }
  
  public Object getKey()
  {
    return key;
  }
  
  public Object getValue()
  {
    return mechanism;
  }
  
  public Object setValue(Object paramObject)
  {
    throw new UnsupportedOperationException();
  }
  
  public int hashCode()
  {
    return (getKey() == null ? 0 : getKey().hashCode()) ^ (getValue() == null ? 0 : getValue().hashCode());
  }
}

/* Location:
 * Qualified Name:     javax.xml.crypto.dsig.TransformService.MechanismMapEntry
 * Java Class Version: 1.4 (48.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.Security;
import java.util.Map.Entry;
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
  {
    Object[] arrayOfObject = (Object[])XMLDSigSecurity.getImpl(paramString1, new MechanismMapEntry(paramString1, paramString2), "TransformService", paramProvider);
    TransformService localTransformService = (TransformService)arrayOfObject[0];
    mechanism = paramString2;
    algorithm = paramString1;
    provider = ((Provider)arrayOfObject[1]);
    return localTransformService;
  }
  
  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;
  
  private static class MechanismMapEntry
    implements Map.Entry
  {
    private final String mechanism;
    private final String key;
    
    MechanismMapEntry(String paramString1, String paramString2)
    {
      mechanism = paramString2;
      key = ("TransformService." + paramString1 + " MechanismType");
    }
    
    public boolean equals(Object paramObject)
    {
      if (!(paramObject instanceof Map.Entry)) {
        return false;
      }
      Map.Entry localEntry = (Map.Entry)paramObject;
      return (getKey() == null ? localEntry.getKey() == null : getKey().equals(localEntry.getKey())) && (getValue() == null ? localEntry.getValue() == null : getValue().equals(localEntry.getValue()));
    }
    
    public Object getKey()
    {
      return key;
    }
    
    public Object getValue()
    {
      return mechanism;
    }
    
    public Object setValue(Object paramObject)
    {
      throw new UnsupportedOperationException();
    }
    
    public int hashCode()
    {
      return (getKey() == null ? 0 : getKey().hashCode()) ^ (getValue() == null ? 0 : getValue().hashCode());
    }
  }
}

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

class XMLDSigSecurity$1 {}

/* Location:
 * Qualified Name:     javax.xml.crypto.dsig.XMLDSigSecurity.1
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto.dsig;

import java.security.Provider;

class XMLDSigSecurity$ProviderProperty
{
  String className;
  Provider provider;
  
  private XMLDSigSecurity$ProviderProperty() {}
  
  XMLDSigSecurity$ProviderProperty(XMLDSigSecurity.1 param1)
  {
    this();
  }
}

/* Location:
 * Qualified Name:     javax.xml.crypto.dsig.XMLDSigSecurity.ProviderProperty
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.crypto.dsig;

import java.security.NoSuchAlgorithmException;
import java.security.Provider;
import java.security.Security;
import java.util.Enumeration;
import java.util.Map.Entry;
import java.util.Set;
import javax.xml.crypto.NoSuchMechanismException;
import javax.xml.crypto.dsig.keyinfo.KeyInfoFactory;

final class XMLDSigSecurity
{
  private static ProviderProperty getEngineClassName(String paramString1, Map.Entry paramEntry, String paramString2, String paramString3, boolean paramBoolean)
    throws NoSuchAlgorithmException
  {
    Provider[] arrayOfProvider = Security.getProviders();
    int i = 0;
    ProviderProperty localProviderProperty = null;
    for (int j = 0; (j < arrayOfProvider.length) && (i == 0); j++) {
      try
      {
        localProviderProperty = getEngineClassName(paramString1, paramEntry, paramString2, paramString3, arrayOfProvider[j], paramBoolean);
        i = 1;
      }
      catch (Exception localException) {}
    }
    if (i == 0)
    {
      if (paramBoolean) {
        throw new NoSuchMechanismException("Mechanism type " + paramString1 + " not available");
      }
      throw new NoSuchAlgorithmException("Algorithm type " + paramString1 + " not available");
    }
    return localProviderProperty;
  }
  
  private static ProviderProperty getEngineClassName(String paramString1, Map.Entry paramEntry, String paramString2, String paramString3, Provider paramProvider, boolean paramBoolean)
    throws NoSuchAlgorithmException
  {
    String str = getProviderProperty(paramString3, paramEntry, paramProvider);
    if (str == null)
    {
      localObject = getStandardName(paramString1, paramString2, paramProvider);
      if (localObject != null) {
        paramString3 = paramString2 + "." + (String)localObject;
      }
      if ((localObject == null) || ((str = getProviderProperty(paramString3, paramEntry, paramProvider)) == null))
      {
        if (paramBoolean) {
          throw new NoSuchMechanismException("no such mechanism type: " + paramString1 + " for provider " + paramProvider.getName());
        }
        throw new NoSuchAlgorithmException("no such algorithm: " + paramString1 + " for provider " + paramProvider.getName());
      }
    }
    Object localObject = new ProviderProperty(null);
    className = str;
    provider = paramProvider;
    return (ProviderProperty)localObject;
  }
  
  private static boolean checkSuperclass(Class paramClass1, Class paramClass2)
  {
    return paramClass2.isAssignableFrom(paramClass1);
  }
  
  static Object[] getImpl(String paramString1, String paramString2, Provider paramProvider)
    throws NoSuchAlgorithmException
  {
    return getImpl(paramString1, null, paramString2, paramProvider);
  }
  
  static Object[] getImpl(String paramString1, Map.Entry paramEntry, String paramString2, Provider paramProvider)
    throws NoSuchAlgorithmException
  {
    Class localClass = null;
    boolean bool = true;
    if (paramString2.equals("XMLSignatureFactory"))
    {
      localClass = XMLSignatureFactory.class;
    }
    else if (paramString2.equals("KeyInfoFactory"))
    {
      localClass = KeyInfoFactory.class;
    }
    else if (paramString2.equals("TransformService"))
    {
      localClass = TransformService.class;
      bool = false;
    }
    String str = paramString2 + "." + paramString1;
    if (paramProvider == null) {
      return doGetImpl(paramString2, localClass, getEngineClassName(paramString1, paramEntry, paramString2, str, bool), bool);
    }
    return doGetImpl(paramString2, localClass, getEngineClassName(paramString1, paramEntry, paramString2, str, paramProvider, bool), bool);
  }
  
  private static Object[] doGetImpl(String paramString, Class paramClass, ProviderProperty paramProviderProperty, boolean paramBoolean)
    throws NoSuchAlgorithmException
  {
    String str1 = className;
    String str2 = provider.getName();
    try
    {
      ClassLoader localClassLoader = provider.getClass().getClassLoader();
      Class localClass;
      if (localClassLoader != null) {
        localClass = localClassLoader.loadClass(str1);
      } else {
        localClass = Class.forName(str1);
      }
      if (checkSuperclass(localClass, paramClass)) {
        return new Object[] { localClass.newInstance(), provider };
      }
      if (paramBoolean) {
        throw new NoSuchMechanismException("class configured for " + paramString + ": " + str1 + " not a " + paramString);
      }
      throw new NoSuchAlgorithmException("class configured for " + paramString + ": " + str1 + " not a " + paramString);
    }
    catch (ClassNotFoundException localClassNotFoundException)
    {
      if (paramBoolean) {
        throw new NoSuchMechanismException("class configured for " + paramString + "(provider: " + str2 + ")" + "cannot be found.\n", localClassNotFoundException);
      }
      throw ((NoSuchAlgorithmException)new NoSuchAlgorithmException("class configured for " + paramString + "(provider: " + str2 + ")" + "cannot be found.\n").initCause(localClassNotFoundException));
    }
    catch (InstantiationException localInstantiationException)
    {
      if (paramBoolean) {
        throw new NoSuchMechanismException("class " + str1 + " configured for " + paramString + "(provider: " + str2 + ") cannot be " + "instantiated. ", localInstantiationException);
      }
      throw ((NoSuchAlgorithmException)new NoSuchAlgorithmException("class " + str1 + " configured for " + paramString + "(provider: " + str2 + ") cannot be " + "instantiated. ").initCause(localInstantiationException));
    }
    catch (IllegalAccessException localIllegalAccessException)
    {
      if (paramBoolean) {
        throw new NoSuchMechanismException("class " + str1 + " configured for " + paramString + "(provider: " + str2 + ") cannot be accessed.\n", localIllegalAccessException);
      }
      throw ((NoSuchAlgorithmException)new NoSuchAlgorithmException("class " + str1 + " configured for " + paramString + "(provider: " + str2 + ") cannot be accessed.\n").initCause(localIllegalAccessException));
    }
  }
  
  private static String getProviderProperty(String paramString, Map.Entry paramEntry, Provider paramProvider)
  {
    String str1 = paramProvider.getProperty(paramString);
    if (str1 == null)
    {
      Enumeration localEnumeration = paramProvider.keys();
      while (localEnumeration.hasMoreElements())
      {
        String str2 = (String)localEnumeration.nextElement();
        if (paramString.equalsIgnoreCase(str2)) {
          str1 = paramProvider.getProperty(str2);
        }
      }
    }
    if ((str1 != null) && (paramEntry != null) && (!paramProvider.entrySet().contains(paramEntry)) && ((!paramEntry.getValue().equals("DOM")) || (paramProvider.get(paramEntry.getKey()) != null))) {
      str1 = null;
    }
    return str1;
  }
  
  private static String getStandardName(String paramString1, String paramString2, Provider paramProvider)
  {
    return getProviderProperty("Alg.Alias." + paramString2 + "." + paramString1, null, paramProvider);
  }
  
  private static class ProviderProperty
  {
    String className;
    Provider provider;
    
    private ProviderProperty() {}
    
    ProviderProperty(XMLDSigSecurity.1 param1)
    {
      this();
    }
  }
}

/* Location:
 * Qualified Name:     javax.xml.crypto.dsig.XMLDSigSecurity
 * Java Class Version: 1.4 (48.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: 1.4 (48.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: 1.4 (48.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.Sign
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

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