public enum SignatureFormat extends Enum<SignatureFormat>
| Enum Constant and Description |
|---|
PDF_ATTACHED
PDF signature type (.pdf extension), attached to the PDF.
|
PDF_DETACHED
PDF signature type (.pdf extension), with no PDF data.
|
PKCS7_ATTACHED
PKCS#7 signature type (.p7m extension), with embedded data.
|
PKCS7_DETACHED
Detached PKCS#7 signature type (.p7m extension), no data.
|
| Modifier and Type | Method and Description |
|---|---|
static SignatureFormat |
fromString(String description)
Tries to find a
SignatureFormat value corresponding to the given
textual description; the comparison is performed case insensitively. |
String |
getDescription()
Returns the format as a descriptive string.
|
String |
toString()
Returns the format as a descriptive string.
|
static SignatureFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SignatureFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SignatureFormat PKCS7_ATTACHED
public static final SignatureFormat PKCS7_DETACHED
public static final SignatureFormat PDF_ATTACHED
public static final SignatureFormat PDF_DETACHED
public static SignatureFormat[] values()
for (SignatureFormat c : SignatureFormat.values()) System.out.println(c);
public static SignatureFormat valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic static SignatureFormat fromString(String description)
SignatureFormat value corresponding to the given
textual description; the comparison is performed case insensitively.description - a text description of the signature format, e.g. "cms-implicit".public String getDescription()
public String toString()
toString in class Enum<SignatureFormat>Copyright © 2012-2014 Andrea Funtò. See here for terms and conditions.