public enum EncryptionMode extends java.lang.Enum<EncryptionMode>
agile,
standard or
binaryRC4) or record based (
cryptoAPI). The record based encryption can't be accessed directly, but will be invoked by using the
Biff8EncryptionKey.setCurrentUserPassword(String) before saving the document.
(Office 支持多种加密模式。加密要么基于整个容器(敏捷、标准或二进制RC4),要么基于记录(cryptoAPI)。基于记录的加密不能直接访问,但会在保存文档之前使用 Biff8EncryptionKey.setCurrentUserPassword(String) 调用。)
| Enum Constant and Description |
|---|
agile |
binaryRC4 |
cryptoAPI |
standard |
xor |
| Modifier and Type | Field and Description |
|---|---|
java.util.function.Supplier<EncryptionInfoBuilder> |
builder |
int |
encryptionFlags |
int |
versionMajor |
int |
versionMinor |
| Modifier and Type | Method and Description |
|---|---|
static EncryptionMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
(返回具有指定名称的此类型的枚举常量。)
|
static EncryptionMode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
(按照声明的顺序返回包含此枚举类型常量的数组。)
|
public static final EncryptionMode binaryRC4
public static final EncryptionMode cryptoAPI
public static final EncryptionMode standard
public static final EncryptionMode agile
public static final EncryptionMode xor
public final java.util.function.Supplier<EncryptionInfoBuilder> builder
public final int versionMajor
public final int versionMinor
public final int encryptionFlags
public static EncryptionMode[] values()
for (EncryptionMode c : EncryptionMode.values()) System.out.println(c);(按照声明的顺序返回包含此枚举类型常量的数组。此方法可用于迭代常量,如下所示: for (EncryptionMode c : EncryptionMode.values()) System.out.println(c);)
public static EncryptionMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
(name - 要返回的枚举常量的名称。)
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
(java.lang.IllegalArgumentException - 如果此枚举类型没有具有指定名称的常量)
java.lang.NullPointerException - if the argument is null
(java.lang.NullPointerException - 如果参数为空)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.