public class ValidationError
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
BUNDLE_NAME |
private java.security.cert.X509Certificate[] |
chain |
private ValidationErrorCategory |
errorCategory |
private ValidationErrorCode |
errorCode |
private java.lang.String |
message |
private java.lang.Object[] |
parameters |
private int |
position |
Constructor and Description |
---|
ValidationError(java.security.cert.X509Certificate[] chain,
int position,
ValidationErrorCode errorCode,
java.lang.Object... params) |
Modifier and Type | Method and Description |
---|---|
java.security.cert.X509Certificate[] |
getChain() |
ValidationErrorCategory |
getErrorCategory()
Returns a coarse grained error category.
|
ValidationErrorCode |
getErrorCode()
Gets the unique error code.
|
java.lang.String |
getMessage()
Returns human readable message describing this error.
|
java.lang.Object[] |
getParameters()
Gets the error parameters.
|
int |
getPosition()
Returns position in chain of the certificate causing the error.
|
static java.lang.String |
makeReason(java.lang.Throwable t) |
static java.lang.String |
makeReasonFromStack(java.lang.Throwable t) |
java.lang.String |
toString() |
private static final java.lang.String BUNDLE_NAME
private int position
private ValidationErrorCode errorCode
private ValidationErrorCategory errorCategory
private java.lang.String message
private java.lang.Object[] parameters
private java.security.cert.X509Certificate[] chain
public ValidationError(java.security.cert.X509Certificate[] chain, int position, ValidationErrorCode errorCode, java.lang.Object... params)
public static java.lang.String makeReasonFromStack(java.lang.Throwable t)
public static java.lang.String makeReason(java.lang.Throwable t)
public int getPosition()
public java.lang.String getMessage()
public ValidationErrorCode getErrorCode()
public java.lang.Object[] getParameters()
public ValidationErrorCategory getErrorCategory()
public java.security.cert.X509Certificate[] getChain()
public java.lang.String toString()
toString
in class java.lang.Object