public class PKCS11Exception extends TokenException
encapsulatedException| Constructor and Description |
|---|
PKCS11Exception(long errorCode)
Constructor taking the error code as defined for the CKR_* constants
in PKCS#11.
|
PKCS11Exception(sun.security.pkcs11.wrapper.PKCS11Exception ex) |
| Modifier and Type | Method and Description |
|---|---|
long |
getErrorCode()
Returns the PKCS#11 error code.
|
String |
getMessage()
This method gets the corresponding text error message from
a property file.
|
getEncapsulatedException, toStringaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic PKCS11Exception(long errorCode)
errorCode - The PKCS#11 error code (return value).public PKCS11Exception(sun.security.pkcs11.wrapper.PKCS11Exception ex)
public String getMessage()
getMessage in class Throwablepublic long getErrorCode()
Copyright © 2018. All rights reserved.