| Modifier and Type | Method and Description |
|---|---|
static void |
setPassword(XmlObject xobj,
String password,
HashAlgorithm hashAlgo,
String prefix)
Sets the XORed or hashed password
|
static boolean |
validatePassword(XmlObject xobj,
String password,
String prefix)
Validates the password, i.e.
|
public static void setPassword(XmlObject xobj, String password, HashAlgorithm hashAlgo, String prefix)
xobj - the xmlbeans object which contains the password attributespassword - the password, if null, the password attributes will be removedhashAlgo - the hash algorithm, if null the password will be XORedprefix - the prefix of the password attributes, may be nullpublic static boolean validatePassword(XmlObject xobj, String password, String prefix)
xobj - the xmlbeans object which contains the password attributespassword - the password, if null the method will always return false,
even if there's no password setprefix - the prefix of the password attributes, may be nullCopyright © 2010 - 2020 Adobe. All Rights Reserved