public class UserInfo extends OFDElement
GMT0099 附录 C.1
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
UserTypeOwner
用户角色类型:文档管理员
|
static String |
UserTypeUser
用户角色类型:用户,默认值
|
proxy| 限定符和类型 | 方法和说明 |
|---|---|
@NotNull byte[] |
getEncryptedWK()
【必选 OFD 2.0】
获取 文件对称加密的包装密钥
|
byte[] |
getIVValue()
【可选 OFD 2.0】
获取 初始化向量值
默认16个0
|
@Nullable byte[] |
getUserCert()
【可选 OFD 2.0】
获取 用户的加解密公钥证书
|
@Nullable String |
getUserName()
【可选 属性 OFD 2.0】
获取 用户名称
|
@NotNull String |
getUserType()
【可选 属性 OFD 2.0】
获取 用户角色类型
默认值: User(用户)
|
UserInfo |
setEncryptedWK(@NotNull byte[] encryptedWk)
【必选 OFD 2.0】
设置 文件对称加密的包装密钥
|
UserInfo |
setIVValue(byte[] ivValue)
【可选 OFD 2.0】
设置 初始化向量值
默认16个0
|
UserInfo |
setUserCert(@Nullable byte[] userCert)
【可选 OFD 2.0】
设置 用户的加解密公钥证书
加密方案标识符为 1.1.2时必选
|
UserInfo |
setUserName(@Nullable String userName)
【可选 属性 OFD 2.0】
设置 用户名称
|
UserInfo |
setUserType(@Nullable String userType)
【可选 属性 OFD 2.0】
设置 用户角色类型
当时文档管理员时取值为Owner,普通用户取值为User,默认为User。
|
addOFDEntity, getElements, getInstance, getObjID, getOFDElement, getOFDElement, getOFDElements, getOFDElementText, getQualifiedName, removeAll, removeAttr, removeOFDElemByNames, set, setObjID, setObjID, setOFDEntity, setOFDNameaccept, add, add, add, add, add, add, add, add, add, addAttribute, addAttribute, addCDATA, addComment, addElement, addElement, addElement, addEntity, additionalNamespaces, addNamespace, addProcessingInstruction, addProcessingInstruction, addText, appendAttributes, appendContent, asXML, asXPathResult, attribute, attribute, attribute, attributeCount, attributeIterator, attributes, attributeValue, attributeValue, attributeValue, attributeValue, clearContent, clone, content, createCopy, createCopy, createCopy, createXPath, declaredNamespaces, detach, element, element, elementByID, elementIterator, elementIterator, elementIterator, elements, elements, elements, elementText, elementText, elementTextTrim, elementTextTrim, equals, getData, getDocument, getName, getNamespace, getNamespaceForPrefix, getNamespaceForURI, getNamespacePrefix, getNamespacesForURI, getNamespaceURI, getNodeType, getNodeTypeName, getParent, getPath, getPath, getProxy, getQName, getQName, getStringValue, getText, getTextTrim, getUniquePath, getUniquePath, getXPathResult, hasContent, hasMixedContent, indexOf, isReadOnly, isRootElement, isTextOnly, matches, node, nodeCount, nodeIterator, normalize, numberValueOf, processingInstruction, processingInstructions, processingInstructions, remove, remove, remove, remove, remove, remove, remove, remove, remove, removeProcessingInstruction, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setAttributes, setAttributeValue, setAttributeValue, setContent, setData, setDocument, setName, setParent, setProcessingInstructions, setProxy, setQName, setText, supportsParent, valueOf, writepublic UserInfo setUserName(@Nullable @Nullable String userName)
userName - 用户名称,如果为null则删除该属性。@Nullable public @Nullable String getUserName()
public UserInfo setUserType(@Nullable @Nullable String userType)
当时文档管理员时取值为Owner,普通用户取值为User,默认为User。
UserTypeOwner UserTypeUser
userType - 用户角色类型,如果为null则删除该属性。@NotNull public @NotNull String getUserType()
默认值: User(用户)
public UserInfo setUserCert(@Nullable @Nullable byte[] userCert)
加密方案标识符为 1.1.2时必选
userCert - 用户的加解密公钥证书,null时表示删除属性@Nullable public @Nullable byte[] getUserCert()
public UserInfo setEncryptedWK(@NotNull @NotNull byte[] encryptedWk)
encryptedWk - 文件对称加密的包装密钥@NotNull public @NotNull byte[] getEncryptedWK()
public UserInfo setIVValue(byte[] ivValue)
默认16个0
ivValue - 初始化向量值,如果为null表示删除参数。public byte[] getIVValue()
默认16个0
Copyright © 2021. All rights reserved.