| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| private static final SecurityPermission | REGISTER_PERMISSION
References Deprecated
SecurityPermission is deprecated or references (maybe indirectly) at least one deprecated element.
|
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | checkRegisterPermission()
Throws a |
| public static byte[] | Returns: the XML Signature encoded bytesthe ASN.1 encoded bytes asn1Bytes, int size of r and s in bytes size)Converts an ASN.1 DSA value to a XML Signature DSA Value. |
| public static byte[] | Returns: the ASN.1 encoded bytesthe XML Signature encoded bytes xmldsigBytes, int size of r and s in bytes size)Converts an XML Signature DSA Value to a ASN.1 DSA value. |
| public static byte[] | |
| public static byte[] | Returns: the bytes read from the streamThis method reads all bytes from the given InputStream till EOF and returns them as a byte array. |
| public static < the type of the class T> T | Returns: the new instancethe class clazz)Creates a new instance of this class with the empty constructor. |
| public static void |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| REGISTER_PERMISSION | back to summary |
|---|---|
| private static final SecurityPermission REGISTER_PERMISSION
References Deprecated
See corresponding docs for further information.
| |
| JavaUtils | back to summary |
|---|---|
| private JavaUtils() | |
| checkRegisterPermission | back to summary |
|---|---|
| public static void checkRegisterPermission() Throws a
| |
| convertDsaASN1toXMLDSIG | back to summary |
|---|---|
| public static byte[] convertDsaASN1toXMLDSIG(byte[] asn1Bytes, int size) throws IOException Converts an ASN.1 DSA value to a XML Signature DSA Value. The JCE DSA Signature algorithm creates ASN.1 encoded (r, s) value pairs (see section 2.2.2 of RFC 3279); the XML Signature requires the core BigInteger values.
| |
| convertDsaXMLDSIGtoASN1 | back to summary |
|---|---|
| public static byte[] convertDsaXMLDSIGtoASN1(byte[] xmldsigBytes, int size) throws IOException Converts an XML Signature DSA Value to a ASN.1 DSA value. The JCE DSA Signature algorithm creates ASN.1 encoded (r, s) value pairs (see section 2.2.2 of RFC 3279); the XML Signature requires the core BigInteger values.
| |
| getBytesFromFile | back to summary |
|---|---|
| public static byte[] getBytesFromFile(String fileName) throws FileNotFoundException, IOException Method getBytesFromFile
| |
| getBytesFromStream | back to summary |
|---|---|
| public static byte[] getBytesFromStream(InputStream inputStream) throws IOException This method reads all bytes from the given InputStream till EOF and returns them as a byte array. The method doesn't close the input stream.
| |
| newInstanceWithEmptyConstructor | back to summary |
|---|---|
| public static <T> T newInstanceWithEmptyConstructor(Class<T> clazz) throws InstantiationException, IllegalAccessException, InvocationTargetException Creates a new instance of this class with the empty constructor.
| |
| writeBytesToFilename | back to summary |
|---|---|
| public static void writeBytesToFilename(String filename, byte[] bytes) Method writeBytesToFilename | |