com.healthmarketscience.jackcess.impl.office
Enum EncryptionHeader.CryptoAlgorithm

java.lang.Object
  extended by java.lang.Enum<EncryptionHeader.CryptoAlgorithm>
      extended by com.healthmarketscience.jackcess.impl.office.EncryptionHeader.CryptoAlgorithm
All Implemented Interfaces:
Serializable, Comparable<EncryptionHeader.CryptoAlgorithm>
Enclosing class:
EncryptionHeader

public static enum EncryptionHeader.CryptoAlgorithm
extends Enum<EncryptionHeader.CryptoAlgorithm>


Enum Constant Summary
AES_128
           
AES_192
           
AES_256
           
EXTERNAL
           
RC4
           
 
Method Summary
 int getAlgId()
           
 int getEncryptedVerifierHashLen()
           
 int getKeySizeMin()
           
 boolean isValidKeySize(int keySize)
           
static EncryptionHeader.CryptoAlgorithm valueOf(String name)
          Returns the enum constant of this type with the specified name.
static EncryptionHeader.CryptoAlgorithm[] 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

EXTERNAL

public static final EncryptionHeader.CryptoAlgorithm EXTERNAL

RC4

public static final EncryptionHeader.CryptoAlgorithm RC4

AES_128

public static final EncryptionHeader.CryptoAlgorithm AES_128

AES_192

public static final EncryptionHeader.CryptoAlgorithm AES_192

AES_256

public static final EncryptionHeader.CryptoAlgorithm AES_256
Method Detail

values

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

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

valueOf

public static EncryptionHeader.CryptoAlgorithm valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getAlgId

public int getAlgId()

getKeySizeMin

public int getKeySizeMin()

getEncryptedVerifierHashLen

public int getEncryptedVerifierHashLen()

isValidKeySize

public boolean isValidKeySize(int keySize)


Copyright © 2010-2015 Health Market Science. All Rights Reserved.