All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dyadicsec.pkcs11.CKException Maven / Gradle / Ivy

Go to download

This is a collection of JAVA libraries that implement Unbound cryptographic classes for JAVA provider, PKCS11 wrapper, cryptoki, and advapi

There is a newer version: 42761
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy