|
XML Security, 1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.xml.enc.dom.Utils
public final class Utils
Miscellaneous static utility methods for use in JSR 105 RI.
Method Summary | |
---|---|
static byte[] |
base64Decode(java.lang.String text)
|
static java.lang.String |
base64Encode(byte[] bytes)
|
static java.lang.String |
base64EncodeNoWhite(byte[] bytes)
|
static void |
checkKeySize(java.lang.Integer keysizeInt,
java.security.interfaces.RSAKey key)
|
static boolean |
compareArray(byte[] a,
byte[] b)
|
static java.lang.String |
mapAlgorithm(java.lang.String uri)
|
static java.lang.String |
parseIdFromSameDocumentURI(java.lang.String uri)
Returns the ID from a same-document URI (ex: "#id") |
static byte[] |
readBytesFromStream(java.io.InputStream is)
|
static boolean |
sameDocumentURI(java.lang.String uri)
Returns true if uri is a same-document URI, false otherwise. |
(package private) static java.util.Set |
toNodeSet(java.util.Iterator i)
Converts an Iterator to a Set of Nodes, according to the XPath Data Model. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static byte[] base64Decode(java.lang.String text) throws java.io.IOException
java.io.IOException
public static java.lang.String base64Encode(byte[] bytes)
public static java.lang.String base64EncodeNoWhite(byte[] bytes)
public static byte[] readBytesFromStream(java.io.InputStream is) throws java.io.IOException
java.io.IOException
static java.util.Set toNodeSet(java.util.Iterator i)
i
- the Iterator
public static java.lang.String parseIdFromSameDocumentURI(java.lang.String uri)
public static boolean sameDocumentURI(java.lang.String uri)
public static boolean compareArray(byte[] a, byte[] b)
public static java.lang.String mapAlgorithm(java.lang.String uri)
public static void checkKeySize(java.lang.Integer keysizeInt, java.security.interfaces.RSAKey key) throws java.security.InvalidKeyException
java.security.InvalidKeyException
|
XML Security, 1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |