org.apache.xml.security.stax.impl.algorithms
Class DSAUtils
java.lang.Object
org.apache.xml.security.stax.impl.algorithms.DSAUtils
public class DSAUtils
- extends Object
- Version:
- $Revision: 1513098 $ $Date: 2013-08-12 11:28:33 +0100 (Mon, 12 Aug 2013) $
- Author:
- $Author: coheigea $
|
Method Summary |
static byte[] |
convertASN1toXMLDSIG(byte[] asn1Bytes)
Converts an ASN.1 DSA value to a XML Signature DSA Value. |
static byte[] |
convertXMLDSIGtoASN1(byte[] xmldsigBytes)
Converts a XML Signature DSA Value to an ASN.1 DSA value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DSAUtils
public DSAUtils()
convertASN1toXMLDSIG
public static byte[] convertASN1toXMLDSIG(byte[] asn1Bytes)
throws IOException
- Converts an ASN.1 DSA value to a XML Signature DSA Value.
The JAVA JCE DSA Signature algorithm creates ASN.1 encoded (r,s) value
pairs; the XML Signature requires the core BigInteger values.
- Parameters:
asn1Bytes -
- Throws:
IOException- See Also:
- 6.4.1 DSA
convertXMLDSIGtoASN1
public static byte[] convertXMLDSIGtoASN1(byte[] xmldsigBytes)
throws IOException
- Converts a XML Signature DSA Value to an ASN.1 DSA value.
The JAVA JCE DSA Signature algorithm creates ASN.1 encoded (r,s) value
pairs; the XML Signature requires the core BigInteger values.
- Parameters:
xmldsigBytes -
- Throws:
IOException- See Also:
- 6.4.1 DSA
Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.