Enum CipherAlgorithm

java.lang.Object
java.lang.Enum<CipherAlgorithm>
org.docx4j.org.apache.poi.poifs.crypt.CipherAlgorithm
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CipherAlgorithm>, java.lang.constant.Constable

public enum CipherAlgorithm
extends java.lang.Enum<CipherAlgorithm>
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant Description
    aes128  
    aes192  
    aes256  
    des  
    des3  
    des3_112  
    rc2  
    rc4  
    rsa  
  • Field Summary

    Fields
    Modifier and Type Field Description
    int[] allowedKeySize  
    int blockSize  
    int defaultKeySize  
    int ecmaId  
    int encryptedVerifierHashLength  
    java.lang.String jceId  
    boolean needsBouncyCastle  
    CipherProvider provider  
    java.lang.String xmlId  
  • Method Summary

    Modifier and Type Method Description
    static CipherAlgorithm fromEcmaId​(int ecmaId)  
    static CipherAlgorithm fromXmlId​(java.lang.String xmlId, int keySize)  
    static CipherAlgorithm valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static CipherAlgorithm[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

  • Field Details

    • provider

      public final CipherProvider provider
    • jceId

      public final java.lang.String jceId
    • ecmaId

      public final int ecmaId
    • defaultKeySize

      public final int defaultKeySize
    • allowedKeySize

      public final int[] allowedKeySize
    • blockSize

      public final int blockSize
    • encryptedVerifierHashLength

      public final int encryptedVerifierHashLength
    • xmlId

      public final java.lang.String xmlId
    • needsBouncyCastle

      public final boolean needsBouncyCastle
  • Method Details

    • values

      public static CipherAlgorithm[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static CipherAlgorithm 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
    • fromEcmaId

      public static CipherAlgorithm fromEcmaId​(int ecmaId)
    • fromXmlId

      public static CipherAlgorithm fromXmlId​(java.lang.String xmlId, int keySize)