Enum EncryptionStream.Purpose
- java.lang.Object
-
- java.lang.Enum<EncryptionStream.Purpose>
-
- org.pgpainless.encryption_signing.EncryptionStream.Purpose
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<EncryptionStream.Purpose>
- Enclosing class:
- EncryptionStream
public static enum EncryptionStream.Purpose extends java.lang.Enum<EncryptionStream.Purpose>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMMUNICATIONS
The stream will encrypt communication that goes over the wire.STORAGE
The stream will encrypt data that is stored on disk.STORAGE_AND_COMMUNICATIONS
The stream will use keys with either flags to encrypt the data.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EncryptionStream.Purpose
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static EncryptionStream.Purpose[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COMMUNICATIONS
public static final EncryptionStream.Purpose COMMUNICATIONS
The stream will encrypt communication that goes over the wire. Eg. EMail, Chat...
-
STORAGE
public static final EncryptionStream.Purpose STORAGE
The stream will encrypt data that is stored on disk. Eg. Encrypted backup...
-
STORAGE_AND_COMMUNICATIONS
public static final EncryptionStream.Purpose STORAGE_AND_COMMUNICATIONS
The stream will use keys with either flags to encrypt the data.
-
-
Method Detail
-
values
public static EncryptionStream.Purpose[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EncryptionStream.Purpose c : EncryptionStream.Purpose.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EncryptionStream.Purpose valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-