Modifier and Type | Method and Description |
---|---|
static void |
setPassword(org.apache.xmlbeans.XmlObject xobj, java.lang.String password, HashAlgorithm hashAlgo, java.lang.String prefix)
Sets the XORed or hashed password
(设置异或或散列密码)
|
static boolean |
validatePassword(org.apache.xmlbeans.XmlObject xobj, java.lang.String password, java.lang.String prefix)
Validates the password, i.e.
(验证密码,即)
|
public static void setPassword(org.apache.xmlbeans.XmlObject xobj, java.lang.String password, HashAlgorithm hashAlgo, java.lang.String prefix)
xobj
- the xmlbeans object which contains the password attributes
(xobj - 包含密码属性的 xmlbeans 对象)
password
- the password, if null, the password attributes will be removed
(password - 密码,如果为空,密码属性将被移除)
hashAlgo
- the hash algorithm, if null the password will be XORed
(hashAlgo - 哈希算法,如果为空,密码将被异或)
prefix
- the prefix of the password attributes, may be null
(prefix - 密码属性的前缀,可以为 null)
public static boolean validatePassword(org.apache.xmlbeans.XmlObject xobj, java.lang.String password, java.lang.String prefix)
xobj
- the xmlbeans object which contains the password attributes
(xobj - 包含密码属性的 xmlbeans 对象)
password
- the password, if null the method will always return false, even if there's no password set
(password - 密码,如果为 null 该方法将始终返回 false,即使没有设置密码)
prefix
- the prefix of the password attributes, may be null
(prefix - 密码属性的前缀,可以为 null)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.