flux.file
Enum PgpEncryptionAlgorithm

java.lang.Object
  extended by java.lang.Enum<PgpEncryptionAlgorithm>
      extended by flux.file.PgpEncryptionAlgorithm
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PgpEncryptionAlgorithm>

public enum PgpEncryptionAlgorithm
extends java.lang.Enum<PgpEncryptionAlgorithm>

Available PGP encryption algorithms.

Author:
Copyright 2014 Flux Corporation. All rights reserved.

Enum Constant Summary
AES_128
          Advanced Encryption Standard, 128 bit key.
AES_192
          Advanced Encryption Standard, 192 bit key.
AES_256
          Advanced Encryption Standard, 256 bit key.
BLOWFISH
          Blowfish cipher.
CAST5
          CAST5 cipher.
DES
          Data Encryption Standard.
IDEA
          International Data Encryption Algorithm.
SHA_1
          Secure Hash Algorithm (SHA-1).
SHA_256
          Secure Hash Algorithm (SHA-2), 256 bit digest.
SHA_384
          Secure Hash Algorithm (SHA-2), 384 bit digest.
SHA_512
          Secure Hash Algorithm (SHA-2), 512 bit digest.
TRIPLE_DES
          Triple Data Encryption Standard.
TWOFISH
          Twofish cipher.
 
Method Summary
static PgpEncryptionAlgorithm valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PgpEncryptionAlgorithm[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

AES_128

public static final PgpEncryptionAlgorithm AES_128
Advanced Encryption Standard, 128 bit key.


AES_192

public static final PgpEncryptionAlgorithm AES_192
Advanced Encryption Standard, 192 bit key.


AES_256

public static final PgpEncryptionAlgorithm AES_256
Advanced Encryption Standard, 256 bit key.


BLOWFISH

public static final PgpEncryptionAlgorithm BLOWFISH
Blowfish cipher.


CAST5

public static final PgpEncryptionAlgorithm CAST5
CAST5 cipher.


DES

public static final PgpEncryptionAlgorithm DES
Data Encryption Standard.


IDEA

public static final PgpEncryptionAlgorithm IDEA
International Data Encryption Algorithm.


TRIPLE_DES

public static final PgpEncryptionAlgorithm TRIPLE_DES
Triple Data Encryption Standard.


TWOFISH

public static final PgpEncryptionAlgorithm TWOFISH
Twofish cipher.


SHA_1

public static final PgpEncryptionAlgorithm SHA_1
Secure Hash Algorithm (SHA-1).


SHA_256

public static final PgpEncryptionAlgorithm SHA_256
Secure Hash Algorithm (SHA-2), 256 bit digest.


SHA_384

public static final PgpEncryptionAlgorithm SHA_384
Secure Hash Algorithm (SHA-2), 384 bit digest.


SHA_512

public static final PgpEncryptionAlgorithm SHA_512
Secure Hash Algorithm (SHA-2), 512 bit digest.

Method Detail

values

public static PgpEncryptionAlgorithm[] 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 (PgpEncryptionAlgorithm c : PgpEncryptionAlgorithm.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PgpEncryptionAlgorithm 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 name
java.lang.NullPointerException - if the argument is null


© 2014 Flux Corporation. All rights reserved.