|
IAIK CMS/SMIME Toolkit Demo API Documentation
Version 6.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdemo.cms.ecc.ECCDemoUtil
public class ECCDemoUtil
Some utilities for the ECC demos.
Constructor Summary | |
---|---|
ECCDemoUtil()
|
Method Summary | |
---|---|
static java.security.spec.AlgorithmParameterSpec |
createParamSpec(java.lang.String curveName)
Creates an EC AlgorithmParameterSpec for the given curve name. |
static double |
getECCelerateVersion()
Gets the version of the IAIK ECCelerate provider (if used). |
static java.lang.String |
getJDKVersion()
Gets the version number of the current JDK. |
static iaik.cms.IaikProvider |
installIaikEccelerateProvider()
Installs the IAIK ECCelerate SecurityProvider. |
static iaik.cms.IaikProvider |
installIaikEccProvider()
Installs an ECC supporting IAIK SecurityProvider. |
static void |
signCertificate(iaik.x509.X509Certificate cert,
iaik.asn1.structures.AlgorithmID algorithm,
java.security.PrivateKey issuerPK)
Signs the given certificate with deterministic generation of parameter k (if supported). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ECCDemoUtil()
Method Detail |
---|
public static iaik.cms.IaikProvider installIaikEccProvider() throws java.lang.Exception
java.lang.Exception
- if the IAIK ECC Provider cannot be installedpublic static iaik.cms.IaikProvider installIaikEccelerateProvider() throws java.lang.Exception
java.lang.Exception
- if the provider cannot be installedpublic static double getECCelerateVersion()
public static java.security.spec.AlgorithmParameterSpec createParamSpec(java.lang.String curveName) throws java.security.spec.InvalidParameterSpecException
curveName
- the name of the curve
java.security.spec.InvalidParameterSpecException
- if no AlgorithmParameterSpec for the given curve name is
available or cannot be createdpublic static void signCertificate(iaik.x509.X509Certificate cert, iaik.asn1.structures.AlgorithmID algorithm, java.security.PrivateKey issuerPK) throws java.security.InvalidKeyException, java.security.cert.CertificateException, java.security.NoSuchAlgorithmException
cert
- the certificate to be signedalgorithm
- the signature algorithmissuerPK
- the issuer private key
java.security.NoSuchAlgorithmException
java.security.cert.CertificateException
java.security.InvalidKeyException
public static java.lang.String getJDKVersion()
|
IAIK CMS/SMIME Toolkit Demo API Documentation
Version 6.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
![]() |
v6.1 (c) 2002 IAIK, (c) 2003 - 2025 SIC |
![]() |