public enum EncryptionPolicy extends Enum<EncryptionPolicy>
Enum Constant and Description |
---|
PREFER_ENCRYPTED |
PREFER_PLAINTEXT |
REQUIRE_ENCRYPTED |
REQUIRE_PLAINTEXT |
Modifier and Type | Method and Description |
---|---|
boolean |
isCompatible(EncryptionPolicy that) |
static EncryptionPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EncryptionPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EncryptionPolicy REQUIRE_PLAINTEXT
public static final EncryptionPolicy PREFER_PLAINTEXT
public static final EncryptionPolicy PREFER_ENCRYPTED
public static final EncryptionPolicy REQUIRE_ENCRYPTED
public static EncryptionPolicy[] values()
for (EncryptionPolicy c : EncryptionPolicy.values()) System.out.println(c);
public static EncryptionPolicy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isCompatible(EncryptionPolicy that)
Copyright © 2016–2021. All rights reserved.