Constructor and Description |
---|
SessionFactory()
ctor.
|
SessionFactory(java.security.spec.AlgorithmParameterSpec param)
ctor with initialisation.
|
Modifier and Type | Method and Description |
---|---|
static void |
addSession(Session session)
add opened session to list.
|
void |
clean()
clean all important content.
|
static void |
closeAll()
close all sessions.
|
java.security.spec.AlgorithmParameterSpec |
getContext()
get PKCS#11 context.
|
java.security.spec.AlgorithmParameterSpec |
getSession()
get session from token of from default source.
|
java.security.spec.AlgorithmParameterSpec |
getToken()
get PKCS#11 context.
|
static void |
removeSession(Session session)
remove closed session to list
|
void |
reset()
clean all.
|
boolean |
setParameter(java.security.spec.AlgorithmParameterSpec p)
Process parameter.
|
public SessionFactory()
public SessionFactory(java.security.spec.AlgorithmParameterSpec param)
param
- initialisation parameterpublic void reset()
public boolean setParameter(java.security.spec.AlgorithmParameterSpec p)
p
- parameterpublic java.security.spec.AlgorithmParameterSpec getSession()
public java.security.spec.AlgorithmParameterSpec getToken()
public java.security.spec.AlgorithmParameterSpec getContext()
public static void addSession(Session session)
session
- opened session added to listpublic static void removeSession(Session session)
session
- closed session to remove from listpublic static void closeAll()