Code example for Node

Methods: appendChild

0
        return rsaKeyPair;
    } 
 
    private void appendBinaryDataAsText(byte[] binaryData, Node node,
            Document doc) {
        node.appendChild(getText(encode(binaryData), doc));
    } 
 
    private Text getText(String data, Document doc) {
        return doc.createTextNode(data);
    } 
 
    private String encode(byte[] bytes) {
        return Base64.encode(bytes);
    } 
}