public enum SmimeState extends Enum<SmimeState>
SmimeState of a MimePart or MimeMultipart is
derived from the corresponding content type and can be obtained with
checkSignature();| Enum Constant and Description |
|---|
ENCRYPTED
Indicates that the
MimePart or MimeMultipart is S/MIME
encrypted. |
NEITHER
Indicates that the
MimePart or MimeMultipart is neither
S/MIME encrypted nor S/MIME signed. |
PROBABLY_SIGNED
Indicates that the
MimePart or MimeMultipart is probably S/MIME
signed (type was multipart/signed, but protocol was missing). |
SIGNED
Indicates that the
MimePart or MimeMultipart is S/MIME
signed. |
SIGNED_ENVELOPED
Indicates that the
MimePart or MimeMultipart is S/MIME
signed using an envelope (content is wrapped, probably as base64). |
| Modifier and Type | Method and Description |
|---|---|
static SmimeState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SmimeState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SmimeState ENCRYPTED
MimePart or MimeMultipart is S/MIME
encrypted.public static final SmimeState PROBABLY_SIGNED
MimePart or MimeMultipart is probably S/MIME
signed (type was multipart/signed, but protocol was missing).public static final SmimeState SIGNED
MimePart or MimeMultipart is S/MIME
signed.public static final SmimeState SIGNED_ENVELOPED
MimePart or MimeMultipart is S/MIME
signed using an envelope (content is wrapped, probably as base64).public static final SmimeState NEITHER
MimePart or MimeMultipart is neither
S/MIME encrypted nor S/MIME signed.public static SmimeState[] values()
for (SmimeState c : SmimeState.values()) System.out.println(c);
public static SmimeState 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 nullCopyright © 2021–2024. All rights reserved.