FileDocCategorySizeDatePackage
SecretKeyFactoryThread.javaAPI DocAndroid 1.5 API1383Wed May 06 22:41:02 BST 2009org.apache.harmony.crypto.tests.javax.crypto.func

SecretKeyFactoryThread

public class SecretKeyFactoryThread extends TestThread

Fields Summary
Constructors Summary
SecretKeyFactoryThread(String[] names)

        super(names);
    
Methods Summary
public voidtest()

        SecretKeyFactory skf = SecretKeyFactory.getInstance(algName);
        byte[] b = new byte[24];
        KeySpec ks = (KeySpec) ((algName == "DES") ? new DESKeySpec(b) :
            (algName == "DESede") ? new DESedeKeySpec(b) :
            new PBEKeySpec("passw".toCharArray()));
        skf.generateSecret(ks);