public enum CertificateValidity extends java.lang.Enum<CertificateValidity>
Enum Constant and Description |
---|
CERT_INVALID_BROKEN
Defines that its PEM definition is broken
|
CERT_INVALID_CA_NOT_SIGNED_BY_CA
Defines that the CA certificate is signed by Peer certificate
|
CERT_INVALID_CORRUPTED1
Defines that the signer's public key is invalid
|
CERT_INVALID_CORRUPTED2
Defines that there is no such security provider
|
CERT_INVALID_CORRUPTED3
Defines that there is no such digital signature algorithm
|
CERT_INVALID_CORRUPTED4
Defines that the signature does not match contents
|
CERT_INVALID_CORRUPTED5
Defines that the certificate encoding is invalid
|
CERT_INVALID_EXPIRED
Defines that the certificate is expired
|
CERT_INVALID_NOT_YET_VALID
Defines that the certificate is invalid
|
CERT_INVALID_PEER_NOT_SIGNED_BY_CA
Defines that the peer certificate is not signed by a CA certificate
|
CERT_INVALID_PEER_SELF_SIGNED
Defines that the certificate peer is self-signed
|
CERT_INVALID_SIGNER_NOT_FOUND
Defines that the signer certificate is not found
|
CERT_UNKNOWN
Defines that the certificate validity state is unknown
|
CERT_VALID
Defines that the certificate is valid
|
Modifier and Type | Field and Description |
---|---|
private int |
code
The certificate validity code
|
private java.lang.String |
validityMessage
The certificate validity description
|
Modifier and Type | Method and Description |
---|---|
static CertificateValidity |
get(java.lang.Integer code)
Gets the certificate validity constant by the given code
|
int |
getCode()
Gets the certificate validity code.
|
java.lang.String |
getValidityMessage()
Gets the certificate validity description.
|
static CertificateValidity |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CertificateValidity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CertificateValidity CERT_VALID
public static final CertificateValidity CERT_INVALID_BROKEN
public static final CertificateValidity CERT_INVALID_NOT_YET_VALID
public static final CertificateValidity CERT_INVALID_EXPIRED
public static final CertificateValidity CERT_INVALID_PEER_SELF_SIGNED
public static final CertificateValidity CERT_INVALID_PEER_NOT_SIGNED_BY_CA
public static final CertificateValidity CERT_INVALID_SIGNER_NOT_FOUND
public static final CertificateValidity CERT_INVALID_CA_NOT_SIGNED_BY_CA
public static final CertificateValidity CERT_INVALID_CORRUPTED1
public static final CertificateValidity CERT_INVALID_CORRUPTED2
public static final CertificateValidity CERT_INVALID_CORRUPTED3
public static final CertificateValidity CERT_INVALID_CORRUPTED4
public static final CertificateValidity CERT_INVALID_CORRUPTED5
public static final CertificateValidity CERT_UNKNOWN
private final java.lang.String validityMessage
private final int code
public static CertificateValidity[] values()
for (CertificateValidity c : CertificateValidity.values()) System.out.println(c);
public static CertificateValidity 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 java.lang.String getValidityMessage()
public int getCode()
public static CertificateValidity get(java.lang.Integer code)
code
- The certificate validity code