com.dyadicsec.pkcs11.CKException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unbound-java-provider Show documentation
Show all versions of unbound-java-provider Show documentation
This is a collection of JAVA libraries that implement Unbound cryptographic classes for JAVA provider, PKCS11 wrapper, cryptoki, and advapi
package com.dyadicsec.pkcs11;
/**
* Created by valery.osheter on 22-Jun-17.
*/
public class CKException extends java.lang.Exception
{
private static final long serialVersionUID = 0L;
private int rv;
private String reason;
public CKException(int rv) { this.reason = ""; this.rv = rv; }
public CKException(String reason, int rv) { this.reason = reason; this.rv = rv; }
public CKException(Throwable cause, String reason, int rv) { super(cause); this.reason = reason; this.rv = rv; }
public int getRV() { return rv; }
public String toString()
{
return reason + ": 0x" + Integer.toHexString(rv);
}
}