IAIK CMS/SMIME Toolkit Demo API Documentation
Version 6.1

demo.cms.ecc.keystore
Class CMSEccKeyStore

java.lang.Object
  extended by demo.cms.ecc.keystore.CMSEccKeyStore
All Implemented Interfaces:
CMSEccKeyStoreConstants

public class CMSEccKeyStore
extends java.lang.Object
implements CMSEccKeyStoreConstants

Keystore for the ECC demos of IAIK-CMS.


Field Summary
static int ECDH
           
static int ECDSA
           
static int SZ_192_BRAINPOOL_CRYPT_1
           
static int SZ_192_BRAINPOOL_CRYPT_2
           
static int SZ_192_BRAINPOOL_SIGN
           
static int SZ_192_CRYPT_1
           
static int SZ_192_CRYPT_2
           
static int SZ_192_SIGN
           
static int SZ_224_BRAINPOOL_CRYPT_1
           
static int SZ_224_BRAINPOOL_CRYPT_2
           
static int SZ_224_BRAINPOOL_SIGN
           
static int SZ_224_CRYPT_1
           
static int SZ_224_CRYPT_2
           
static int SZ_224_SIGN
           
static int SZ_256_BRAINPOOL_CRYPT_1
           
static int SZ_256_BRAINPOOL_CRYPT_2
           
static int SZ_256_BRAINPOOL_SIGN
           
static int SZ_256_CRYPT_1
           
static int SZ_256_CRYPT_2
           
static int SZ_256_SIGN
           
static int SZ_384_BRAINPOOL_CRYPT_1
           
static int SZ_384_BRAINPOOL_CRYPT_2
           
static int SZ_384_BRAINPOOL_SIGN
           
static int SZ_384_CRYPT_1
           
static int SZ_384_CRYPT_2
           
static int SZ_384_SIGN
           
static int SZ_512_BRAINPOOL_CRYPT_1
           
static int SZ_512_BRAINPOOL_CRYPT_2
           
static int SZ_512_BRAINPOOL_SIGN
           
static int SZ_521_CRYPT_1
           
static int SZ_521_CRYPT_2
           
static int SZ_521_SIGN
           
static int SZ_ED25519
           
static int SZ_ED448
           
static int SZ_X25519
           
static int SZ_X448
           
 
Fields inherited from interface demo.cms.ecc.keystore.CMSEccKeyStoreConstants
CA_ECDSA, ECDH_192_1, ECDH_192_2, ECDH_224_1, ECDH_224_2, ECDH_256_1, ECDH_256_2, ECDH_384_1, ECDH_384_2, ECDH_521_1, ECDH_521_2, ECDH_BRAINPOOL_192_1, ECDH_BRAINPOOL_192_2, ECDH_BRAINPOOL_224_1, ECDH_BRAINPOOL_224_2, ECDH_BRAINPOOL_256_1, ECDH_BRAINPOOL_256_2, ECDH_BRAINPOOL_384_1, ECDH_BRAINPOOL_384_2, ECDH_BRAINPOOL_512_1, ECDH_BRAINPOOL_512_2, ECDH_X25519, ECDH_X448, ECDSA_192, ECDSA_224, ECDSA_256, ECDSA_384, ECDSA_521, ECDSA_BRAINPOOL_192, ECDSA_BRAINPOOL_224, ECDSA_BRAINPOOL_256, ECDSA_BRAINPOOL_384, ECDSA_BRAINPOOL_512, EDDSA_ED25519, EDDSA_ED448, KS_DIRECTORY, KS_FILENAME, KS_PASSWORD
 
Constructor Summary
CMSEccKeyStore()
           
 
Method Summary
static iaik.x509.X509Certificate getCaCertificate()
          Returns the demo CA certificate.
static java.security.PrivateKey getCaPrivateKey()
          Returns the private key of a CA certificate.
static iaik.x509.X509Certificate[] getCertificateChain(int type, int size)
          Returns a demo user certificate.
static java.security.PrivateKey getPrivateKey(int type, int size)
          Returns the private key of a CA certificate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ECDSA

public static final int ECDSA
See Also:
Constant Field Values

ECDH

public static final int ECDH
See Also:
Constant Field Values

SZ_192_SIGN

public static final int SZ_192_SIGN
See Also:
Constant Field Values

SZ_224_SIGN

public static final int SZ_224_SIGN
See Also:
Constant Field Values

SZ_256_SIGN

public static final int SZ_256_SIGN
See Also:
Constant Field Values

SZ_384_SIGN

public static final int SZ_384_SIGN
See Also:
Constant Field Values

SZ_521_SIGN

public static final int SZ_521_SIGN
See Also:
Constant Field Values

SZ_ED25519

public static final int SZ_ED25519
See Also:
Constant Field Values

SZ_ED448

public static final int SZ_ED448
See Also:
Constant Field Values

SZ_192_BRAINPOOL_SIGN

public static final int SZ_192_BRAINPOOL_SIGN
See Also:
Constant Field Values

SZ_224_BRAINPOOL_SIGN

public static final int SZ_224_BRAINPOOL_SIGN
See Also:
Constant Field Values

SZ_256_BRAINPOOL_SIGN

public static final int SZ_256_BRAINPOOL_SIGN
See Also:
Constant Field Values

SZ_384_BRAINPOOL_SIGN

public static final int SZ_384_BRAINPOOL_SIGN
See Also:
Constant Field Values

SZ_512_BRAINPOOL_SIGN

public static final int SZ_512_BRAINPOOL_SIGN
See Also:
Constant Field Values

SZ_192_CRYPT_1

public static final int SZ_192_CRYPT_1
See Also:
Constant Field Values

SZ_192_CRYPT_2

public static final int SZ_192_CRYPT_2
See Also:
Constant Field Values

SZ_224_CRYPT_1

public static final int SZ_224_CRYPT_1
See Also:
Constant Field Values

SZ_224_CRYPT_2

public static final int SZ_224_CRYPT_2
See Also:
Constant Field Values

SZ_256_CRYPT_1

public static final int SZ_256_CRYPT_1
See Also:
Constant Field Values

SZ_256_CRYPT_2

public static final int SZ_256_CRYPT_2
See Also:
Constant Field Values

SZ_384_CRYPT_1

public static final int SZ_384_CRYPT_1
See Also:
Constant Field Values

SZ_384_CRYPT_2

public static final int SZ_384_CRYPT_2
See Also:
Constant Field Values

SZ_521_CRYPT_1

public static final int SZ_521_CRYPT_1
See Also:
Constant Field Values

SZ_521_CRYPT_2

public static final int SZ_521_CRYPT_2
See Also:
Constant Field Values

SZ_X25519

public static final int SZ_X25519
See Also:
Constant Field Values

SZ_X448

public static final int SZ_X448
See Also:
Constant Field Values

SZ_192_BRAINPOOL_CRYPT_1

public static final int SZ_192_BRAINPOOL_CRYPT_1
See Also:
Constant Field Values

SZ_192_BRAINPOOL_CRYPT_2

public static final int SZ_192_BRAINPOOL_CRYPT_2
See Also:
Constant Field Values

SZ_224_BRAINPOOL_CRYPT_1

public static final int SZ_224_BRAINPOOL_CRYPT_1
See Also:
Constant Field Values

SZ_224_BRAINPOOL_CRYPT_2

public static final int SZ_224_BRAINPOOL_CRYPT_2
See Also:
Constant Field Values

SZ_256_BRAINPOOL_CRYPT_1

public static final int SZ_256_BRAINPOOL_CRYPT_1
See Also:
Constant Field Values

SZ_256_BRAINPOOL_CRYPT_2

public static final int SZ_256_BRAINPOOL_CRYPT_2
See Also:
Constant Field Values

SZ_384_BRAINPOOL_CRYPT_1

public static final int SZ_384_BRAINPOOL_CRYPT_1
See Also:
Constant Field Values

SZ_384_BRAINPOOL_CRYPT_2

public static final int SZ_384_BRAINPOOL_CRYPT_2
See Also:
Constant Field Values

SZ_512_BRAINPOOL_CRYPT_1

public static final int SZ_512_BRAINPOOL_CRYPT_1
See Also:
Constant Field Values

SZ_512_BRAINPOOL_CRYPT_2

public static final int SZ_512_BRAINPOOL_CRYPT_2
See Also:
Constant Field Values
Constructor Detail

CMSEccKeyStore

public CMSEccKeyStore()
Method Detail

getPrivateKey

public static java.security.PrivateKey getPrivateKey(int type,
                                                     int size)
Returns the private key of a CA certificate.

Parameters:
type - ECDSA or ECDH
size - the key size
Returns:
the key

getCertificateChain

public static iaik.x509.X509Certificate[] getCertificateChain(int type,
                                                              int size)
Returns a demo user certificate.

Parameters:
type - ECDSA or ECDH
size - the size of the corresponding key
Returns:
the certificate chain

getCaPrivateKey

public static java.security.PrivateKey getCaPrivateKey()
Returns the private key of a CA certificate.

Returns:
the private key of the ca

getCaCertificate

public static iaik.x509.X509Certificate getCaCertificate()
Returns the demo CA certificate.

Returns:
the demo CA certificate

IAIK CMS/SMIME Toolkit Demo API Documentation
Version 6.1

v6.1
(c) 2002 IAIK, (c) 2003 - 2025 SIC