com.unbound.client.CryptoOper 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.unbound.client;
public class CryptoOper
{
protected Session session = null;
public KeyObject keyObject = null;
protected void checkSession()
{
if (session==null) session = keyObject.getPartition().acquireSession();
}
protected void releaseSession()
{
if (session!=null) session.release();
session = null;
}
public void reset()
{
releaseSession();
}
}