public enum SecureCertStatus extends java.lang.Enum<SecureCertStatus>
Enum Constant and Description |
---|
BadPassword
Was unable to decode the file with the provided password
|
BrokenPem
Recognized as PEM but the file is broken or corrupt
|
BrokenPKCS12
Recognized as PKCS#12 but the file is broken or corrupt
|
CertNotPaired
The cert is not paired with the key
|
FileError
File access error (not found or bad permission)
|
InvalidSuite
Invalid security suite selected
|
NoCert
Has no certificate (maybe it is a key file only?)
|
NoKey
Has no key (maybe it is a cert file only?)
|
NotInitialized
Library is not initialized
|
Ok
Cert + Key usable (validity check is separate)
|
ResultConfirm
Confirmation from the user is required before proceeding
|
UnknownFormat
Unrecognized file format
|
UnusableCert
The suite could not load the cert
|
UnusableKey
The suite could not load the key
|
Modifier and Type | Method and Description |
---|---|
static SecureCertStatus |
fromInt(int i) |
static SecureCertStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SecureCertStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SecureCertStatus Ok
public static final SecureCertStatus InvalidSuite
public static final SecureCertStatus NotInitialized
public static final SecureCertStatus FileError
public static final SecureCertStatus UnknownFormat
public static final SecureCertStatus BrokenPem
public static final SecureCertStatus BrokenPKCS12
public static final SecureCertStatus BadPassword
public static final SecureCertStatus NoCert
public static final SecureCertStatus NoKey
public static final SecureCertStatus UnusableCert
public static final SecureCertStatus UnusableKey
public static final SecureCertStatus CertNotPaired
public static final SecureCertStatus ResultConfirm
public static SecureCertStatus[] values()
for (SecureCertStatus c : SecureCertStatus.values()) System.out.println(c);
public static SecureCertStatus valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static SecureCertStatus fromInt(int i)