org.bouncycastle.jce.provider.test
Class PBETest.PKCS12Test

java.lang.Object
  extended by org.bouncycastle.util.test.SimpleTest
      extended by org.bouncycastle.jce.provider.test.PBETest.PKCS12Test
All Implemented Interfaces:
Test
Enclosing class:
PBETest

private class PBETest.PKCS12Test
extends SimpleTest


Field Summary
(package private)  java.lang.String algorithm
           
(package private)  java.lang.String baseAlgorithm
           
(package private)  Digest digest
           
(package private)  int ivSize
           
(package private)  int keySize
           
(package private)  char[] password
           
 
Constructor Summary
PBETest.PKCS12Test(java.lang.String baseAlgorithm, java.lang.String algorithm, Digest digest, int keySize, int ivSize)
           
 
Method Summary
private  java.security.AlgorithmParameters checkParameters(javax.crypto.Cipher c, byte[] salt, int iCount)
           
 java.lang.String getName()
           
 void performTest()
           
 
Methods inherited from class org.bouncycastle.util.test.SimpleTest
areEqual, fail, fail, fail, perform, runTest, runTest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

password

char[] password

baseAlgorithm

java.lang.String baseAlgorithm

algorithm

java.lang.String algorithm

digest

Digest digest

keySize

int keySize

ivSize

int ivSize
Constructor Detail

PBETest.PKCS12Test

PBETest.PKCS12Test(java.lang.String baseAlgorithm,
                   java.lang.String algorithm,
                   Digest digest,
                   int keySize,
                   int ivSize)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface Test
Specified by:
getName in class SimpleTest

performTest

public void performTest()
                 throws java.lang.Exception
Specified by:
performTest in class SimpleTest
Throws:
java.lang.Exception

checkParameters

private java.security.AlgorithmParameters checkParameters(javax.crypto.Cipher c,
                                                          byte[] salt,
                                                          int iCount)
                                                   throws java.security.spec.InvalidParameterSpecException
Throws:
java.security.spec.InvalidParameterSpecException