org.sejda.model.pdf.encryption
Enum PdfEncryption

java.lang.Object
  extended by java.lang.Enum<PdfEncryption>
      extended by org.sejda.model.pdf.encryption.PdfEncryption
All Implemented Interfaces:
Serializable, Comparable<PdfEncryption>, FriendlyNamed, MinRequiredVersion

public enum PdfEncryption
extends Enum<PdfEncryption>
implements MinRequiredVersion, FriendlyNamed

Possible encryption algorithm to use during pdf encryption.

Author:
Andrea Vacondio

Enum Constant Summary
AES_ENC_128
           
STANDARD_ENC_128
           
STANDARD_ENC_40
           
 
Method Summary
 String getFriendlyName()
           
 PdfVersion getMinVersion()
           
static PdfEncryption valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PdfEncryption[] 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, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

STANDARD_ENC_40

public static final PdfEncryption STANDARD_ENC_40

STANDARD_ENC_128

public static final PdfEncryption STANDARD_ENC_128

AES_ENC_128

public static final PdfEncryption AES_ENC_128
Method Detail

values

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

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

valueOf

public static PdfEncryption 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

getMinVersion

public PdfVersion getMinVersion()
Specified by:
getMinVersion in interface MinRequiredVersion
Returns:
the minimum required version

getFriendlyName

public String getFriendlyName()
Specified by:
getFriendlyName in interface FriendlyNamed
Returns:
the friendly name of the entity, to be usually used as a representation for an user.


Copyright © 2013 sejda. All Rights Reserved.