|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.xml.security.utils.JavaUtils
public class JavaUtils
A collection of different, general-purpose methods for JAVA-specific things
| Method Summary | |
|---|---|
static byte[] |
convertDsaASN1toXMLDSIG(byte[] asn1Bytes,
int size)
Converts an ASN.1 DSA value to a XML Signature DSA Value. |
static byte[] |
convertDsaXMLDSIGtoASN1(byte[] xmldsigBytes,
int size)
Converts an XML Signature DSA Value to a ASN.1 DSA value. |
static byte[] |
getBytesFromFile(java.lang.String fileName)
Method getBytesFromFile |
static byte[] |
getBytesFromStream(java.io.InputStream inputStream)
This method reads all bytes from the given InputStream till EOF and returns them as a byte array. |
static void |
writeBytesToFilename(java.lang.String filename,
byte[] bytes)
Method writeBytesToFilename |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static byte[] getBytesFromFile(java.lang.String fileName)
throws java.io.FileNotFoundException,
java.io.IOException
fileName -
java.io.FileNotFoundException
java.io.IOException
public static void writeBytesToFilename(java.lang.String filename,
byte[] bytes)
filename - bytes -
public static byte[] getBytesFromStream(java.io.InputStream inputStream)
throws java.io.IOException
inputStream -
java.io.FileNotFoundException
java.io.IOException
public static byte[] convertDsaASN1toXMLDSIG(byte[] asn1Bytes,
int size)
throws java.io.IOException
asn1Bytes - the ASN.1 encoded bytessize - size of r and s in bytes
java.io.IOException - if the bytes are not encoded correctly
public static byte[] convertDsaXMLDSIGtoASN1(byte[] xmldsigBytes,
int size)
throws java.io.IOException
xmldsigBytes - the XML Signature encoded bytessize - size of r and s in bytes
java.io.IOException - if the bytes are not encoded correctly
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||