org.mozilla.jss.tests

Class JCASymKeyGen


public class JCASymKeyGen
extends java.lang.Object

Constructor Summary

JCASymKeyGen(String certDbLoc, String passwdFile)
Default constructor

Method Summary

javax.crypto.SecretKey
genPBESecretKey(String keyType, String provider)
javax.crypto.SecretKey
genSecretKey(String keyType, String provider)
static void
main(args[] )
void
testCipher(javax.crypto.SecretKey sKey, String algFamily, String algType, String providerForEncrypt, String providerForDecrypt)
void
testMultiPartCipher(javax.crypto.SecretKey sKey, String algFamily, String algType, String providerForEncrypt, String providerForDecrypt)

Constructor Details

JCASymKeyGen

public JCASymKeyGen(String certDbLoc,
                    String passwdFile)
Default constructor

Method Details

genPBESecretKey

public javax.crypto.SecretKey genPBESecretKey(String keyType,
                                              String provider)
Parameters:
keyType -
provider -
Returns:

genSecretKey

public javax.crypto.SecretKey genSecretKey(String keyType,
                                           String provider)
Parameters:
Returns:

main

public static void main(args[] )

testCipher

public void testCipher(javax.crypto.SecretKey sKey,
                       String algFamily,
                       String algType,
                       String providerForEncrypt,
                       String providerForDecrypt)
            throws Exception
Parameters:
sKey -

testMultiPartCipher

public void testMultiPartCipher(javax.crypto.SecretKey sKey,
                                String algFamily,
                                String algType,
                                String providerForEncrypt,
                                String providerForDecrypt)
            throws Exception
Parameters:
sKey -