Package org.xipki.security.qa
Class P11SignSpeed
- java.lang.Object
-
- org.xipki.util.BenchmarkExecutor
-
- org.xipki.security.qa.P11SignSpeed
-
- Direct Known Subclasses:
P11SignSpeed.DSA,P11SignSpeed.EC,P11SignSpeed.HMAC,P11SignSpeed.RSA,P11SignSpeed.SM2
public abstract class P11SignSpeed extends org.xipki.util.BenchmarkExecutorSpeed test of PKCS#11 signature creation.- Since:
- 2.0.0
- Author:
- Lijun Liao (xipki)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classP11SignSpeed.DSAstatic classP11SignSpeed.ECstatic classP11SignSpeed.HMACstatic classP11SignSpeed.RSAstatic classP11SignSpeed.SM2
-
Constructor Summary
Constructors Constructor Description P11SignSpeed(SecurityFactory securityFactory, P11Slot slot, String signatureAlgorithm, boolean deleteKeyAfterTest, org.xipki.pkcs11.wrapper.PKCS11KeyId keyId, String description, int threads)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected static P11Slot.P11NewKeyControlgetNewKeyControl(byte[] id, String label)protected static org.xipki.pkcs11.wrapper.PKCS11KeyIdgetNonNullKeyId(P11Slot slot, byte[] keyId, String keyLabel)protected RunnablegetTester()
-
-
-
Constructor Detail
-
P11SignSpeed
public P11SignSpeed(SecurityFactory securityFactory, P11Slot slot, String signatureAlgorithm, boolean deleteKeyAfterTest, org.xipki.pkcs11.wrapper.PKCS11KeyId keyId, String description, int threads) throws org.xipki.util.exception.ObjectCreationException
- Throws:
org.xipki.util.exception.ObjectCreationException
-
-
Method Detail
-
close
public final void close()
- Overrides:
closein classorg.xipki.util.BenchmarkExecutor
-
getNewKeyControl
protected static P11Slot.P11NewKeyControl getNewKeyControl(byte[] id, String label)
-
getNonNullKeyId
protected static org.xipki.pkcs11.wrapper.PKCS11KeyId getNonNullKeyId(P11Slot slot, byte[] keyId, String keyLabel) throws org.xipki.pkcs11.wrapper.TokenException
- Throws:
org.xipki.pkcs11.wrapper.TokenException
-
-