com.aspose.pdf.facades

Class KeySize

  • java.lang.Object
    • com.aspose.ms.System.ValueType<com.aspose.ms.System.Enum>
      • com.aspose.ms.System.Enum
        • com.aspose.pdf.facades.KeySize


  • public final class KeySize
    extends com.aspose.ms.System.Enum

    Defines different key sizes which can be used to encrypt pdf documents.

    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.aspose.ms.System.Enum

        com.aspose.ms.System.Enum.AbstractEnum, com.aspose.ms.System.Enum.FlaggedEnum, com.aspose.ms.System.Enum.ObjectEnum, com.aspose.ms.System.Enum.SimpleEnum
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int x128
      128 bit key.
      static int x256
      256 bit key.
      static int x40
      40 bit key.
      • Fields inherited from class com.aspose.ms.System.Enum

        EnumSeparatorCharArray
    • Method Summary

      • Methods inherited from class com.aspose.ms.System.Enum

        Clone, CloneTo, format, format, get_Caption, get_Value, getName, getNames, getNames, getUnderlyingType, getUnderlyingType, getValue, getValues, isDefined, isDefined, isDefined, isDefined, parse, parse, parse, parse, register, toObject
    • Field Detail

      • x40

        public static final int x40

        40 bit key. Such key size is used with RC4 algorithm and provides low level of security. Nevertheless old versions of pdf documents can be encrypted only with such keys (v. 1.3 and lower);

        See Also:
        Constant Field Values
      • x128

        public static final int x128

        128 bit key. Both RC4 and AES algorithms can use such key size.

        See Also:
        Constant Field Values
      • x256

        public static final int x256

        256 bit key. Such key size can be used only with AES and is recognized with the last Adobe Reader versions (starting from v.9).

        See Also:
        Constant Field Values