public class ValidationError extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CANNOT_RETRIEVE_CERTIFICATE |
static int |
EXCEEDED_DEPTH_LIMIT |
static int |
EXPIRED_CERTIFICATE |
static int |
IMPLEMENTATION_ERROR |
static int |
INVALID_KEY_LOCATOR |
static int |
INVALID_SIGNATURE |
static int |
LOOP_DETECTED |
static int |
MALFORMED_CERTIFICATE |
static int |
NO_ERROR |
static int |
NO_SIGNATURE |
static int |
POLICY_ERROR |
static int |
USER_MIN |
| Constructor and Description |
|---|
ValidationError(int code)
Create a new ValidationError for the given code and an empty error message.
|
ValidationError(int code,
String info)
Create a new ValidationError for the given code.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCode()
Get the error code given to the constructor.
|
String |
getInfo()
Get the error message given to the constructor.
|
String |
toString()
Get a string representation of this ValidationError.
|
public static final int NO_ERROR
public static final int INVALID_SIGNATURE
public static final int NO_SIGNATURE
public static final int CANNOT_RETRIEVE_CERTIFICATE
public static final int EXPIRED_CERTIFICATE
public static final int LOOP_DETECTED
public static final int MALFORMED_CERTIFICATE
public static final int EXCEEDED_DEPTH_LIMIT
public static final int INVALID_KEY_LOCATOR
public static final int POLICY_ERROR
public static final int IMPLEMENTATION_ERROR
public static final int USER_MIN
public ValidationError(int code,
String info)
code - The code which is one of the standard error codes such as
INVALID_SIGNATURE, or a custom code if greater than or equal to USER_MIN.info - The error message.public ValidationError(int code)
code - The code which is one of the standard error codes such as
INVALID_SIGNATURE, or a custom code if greater than or equal to USER_MIN.public final int getCode()
public final String getInfo()
Copyright © 2019. All rights reserved.