ErrorMessages

public class ErrorMessages

A class holding error codes and the corresponding error messages.

Author:kcyee

Fields

ERR_PKI_CANNOT_DECRYPT

public static final int ERR_PKI_CANNOT_DECRYPT

ERR_PKI_CANNOT_ENCRYPT

public static final int ERR_PKI_CANNOT_ENCRYPT

ERR_PKI_CANNOT_SIGN

public static final int ERR_PKI_CANNOT_SIGN

ERR_PKI_INVALID_KEYSTORE

public static final int ERR_PKI_INVALID_KEYSTORE

ERR_PKI_UNKNOWN_ERROR

public static final int ERR_PKI_UNKNOWN_ERROR

ERR_PKI_VERIFY_SIGNATURE_FAILED

public static final int ERR_PKI_VERIFY_SIGNATURE_FAILED

errorMsg

protected static TreeMap errorMsg

isConfigured

protected static boolean isConfigured

Methods

configure

protected static synchronized void configure()

getMessage

public static String getMessage(int code)

getMessage

public static String getMessage(int code, String extraMsg)

getMessage

public static String getMessage(int code, Throwable e)

getMessage

public static String getMessage(int code, Throwable e, String extraMsg)

load

protected static void load(int code, String msg)

main

public static void main(String[] args)