|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object play.libs.XML
public class XML
XML utils
Constructor Summary | |
---|---|
XML()
|
Method Summary | |
---|---|
static org.w3c.dom.Document |
getDocument(java.io.File file)
Parse an XML file to DOM |
static org.w3c.dom.Document |
getDocument(java.lang.String xml)
Parse an XML string content to DOM |
static java.lang.String |
serialize(org.w3c.dom.Document document)
Serialize to XML String |
static org.w3c.dom.Document |
sign(org.w3c.dom.Document document,
java.security.interfaces.RSAPublicKey publicKey,
java.security.interfaces.RSAPrivateKey privateKey)
Sign the XML document using xmldsig. |
static boolean |
validSignature(org.w3c.dom.Document document,
java.security.Key publicKey)
Check the xmldsig signature of the XML document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XML()
Method Detail |
---|
public static java.lang.String serialize(org.w3c.dom.Document document)
document
- The DOM document
public static org.w3c.dom.Document getDocument(java.io.File file)
public static org.w3c.dom.Document getDocument(java.lang.String xml)
public static boolean validSignature(org.w3c.dom.Document document, java.security.Key publicKey)
document
- the document to testpublicKey
- the public key corresponding to the key pair the document was signed with
public static org.w3c.dom.Document sign(org.w3c.dom.Document document, java.security.interfaces.RSAPublicKey publicKey, java.security.interfaces.RSAPrivateKey privateKey)
document
- the document to sign; it will be modified by the method.publicKey
- the public key from the key pair to sign the document.privateKey
- the private key from the key pair to sign the document.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |