|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||
PrivateKey object to the keystore.
CryptoBag object.
iaik.me.keymgmt.KeyAndCert object, the certificatechain of this object is returned.
Object thing = keystore.getEntry("myalias");
if( thing instanceof X509Certificate[] ) {
// certificate (chain)
} else if( thing instanceof KeyAndCert ) {
// KeyAndCert object
} else if ( thing instanceof PrivateKey ) {
// Private key object
}
KeyAndCert object, the private key of that object is returned.
RSAKeyPairGenerator and DSAKeyPairGenerator ).
KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA");
kpg.initialize(2048, null, secrandom);
CryptoBag keyPair = kpg.generateKeyPair();
Currently, the aliases RSA and DSA ( for RSA and DSA keypairgenerators) are supported.
Class.forName(....) method.
javax.crypto.MACSpi class for providing
the functionality of the HMAC(Keyed-Hashing for Message Authentication)
algorithm, as specified in RFC 2104.
MessageDigest.getInstance(String) method.
KeyPairGenerator.getInstance(...) method.
KeyPairGenerator.register("MyOwn", "mycompany.mypackage.MyKeyPairGenerator");
KeyPairGenerator kpg = KeyPairGenerator.getInstance("MyOwn");
Signature.getInstance(String) method.
register("MyCipher", "mypackage.MyCipher");
getInstance("MyCipher"); method
System.in.
|
This Javadoc may contain text parts from IETF Internet Standard specifications, see copyright note) and RSA Data Security Public-Key Cryptography Standards (see copyright note). | ||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||
IAIK-JCE ME 3.04, (c) 2002 IAIK, (c) 2003 to 2006 Stiftung SIC