Package org.xipki.security.qa
Class P12SignSpeed
- java.lang.Object
-
- org.xipki.util.BenchmarkExecutor
-
- org.xipki.security.qa.P12SignSpeed
-
- Direct Known Subclasses:
P12SignSpeed.AESGmac,P12SignSpeed.DSA,P12SignSpeed.EC,P12SignSpeed.HMAC,P12SignSpeed.RSA,P12SignSpeed.SM2
public abstract class P12SignSpeed extends org.xipki.util.BenchmarkExecutorSpeed test of PKCS#12 signature creation.- Since:
- 2.0.0
- Author:
- Lijun Liao (xipki)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classP12SignSpeed.AESGmacstatic classP12SignSpeed.DSAstatic classP12SignSpeed.ECstatic classP12SignSpeed.HMACstatic classP12SignSpeed.RSAstatic classP12SignSpeed.SM2
-
Constructor Summary
Constructors Constructor Description P12SignSpeed(String tokenType, SecurityFactory securityFactory, String signatureAlgorithm, byte[] keystore, String description, int threads)P12SignSpeed(SecurityFactory securityFactory, String signatureAlgorithm, byte[] keystore, String description, int threads)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static byte[]getPrecomputedDSAKeystore(int plength, int qlength)protected static byte[]getPrecomputedECKeystore(org.bouncycastle.asn1.ASN1ObjectIdentifier curveOid)protected static byte[]getPrecomputedRSAKeystore(int keysize, BigInteger publicExponent)protected RunnablegetTester()
-
-
-
Field Detail
-
PASSWORD
protected static final String PASSWORD
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
P12SignSpeed
public P12SignSpeed(SecurityFactory securityFactory, String signatureAlgorithm, byte[] keystore, String description, int threads) throws Exception
- Throws:
Exception
-
-
Method Detail
-
getTester
protected Runnable getTester() throws Exception
- Specified by:
getTesterin classorg.xipki.util.BenchmarkExecutor- Throws:
Exception
-
getPrecomputedRSAKeystore
protected static byte[] getPrecomputedRSAKeystore(int keysize, BigInteger publicExponent) throws IOException- Throws:
IOException
-
getPrecomputedDSAKeystore
protected static byte[] getPrecomputedDSAKeystore(int plength, int qlength) throws IOException- Throws:
IOException
-
getPrecomputedECKeystore
protected static byte[] getPrecomputedECKeystore(org.bouncycastle.asn1.ASN1ObjectIdentifier curveOid) throws IOException- Throws:
IOException
-
-