org.bouncycastle.jce.provider.test
Class AttrCertTest

java.lang.Object
  extended by org.bouncycastle.util.test.SimpleTest
      extended by org.bouncycastle.jce.provider.test.AttrCertTest
All Implemented Interfaces:
Test

public class AttrCertTest
extends SimpleTest


Field Summary
(package private) static byte[] attrCert
           
(package private) static byte[] certWithBaseCertificateID
           
(package private)  byte[] holderCertWithBaseCertificateID
           
private static java.security.spec.RSAPrivateCrtKeySpec RSA_PRIVATE_KEY_SPEC
           
(package private)  byte[] signCert
           
 
Constructor Summary
AttrCertTest()
           
 
Method Summary
private  void equalityAndHashCodeTest(X509AttributeCertificate attrCert, byte[] encoding)
           
 java.lang.String getName()
           
static void main(java.lang.String[] args)
           
 void performTest()
           
private  void testCertWithBaseCertificateID()
           
private  void testGenerateWithCert()
           
private  void testGenerateWithPrincipal()
           
 
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

RSA_PRIVATE_KEY_SPEC

private static final java.security.spec.RSAPrivateCrtKeySpec RSA_PRIVATE_KEY_SPEC

attrCert

static byte[] attrCert

signCert

byte[] signCert

certWithBaseCertificateID

static byte[] certWithBaseCertificateID

holderCertWithBaseCertificateID

byte[] holderCertWithBaseCertificateID
Constructor Detail

AttrCertTest

public AttrCertTest()
Method Detail

getName

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

testCertWithBaseCertificateID

private void testCertWithBaseCertificateID()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

equalityAndHashCodeTest

private void equalityAndHashCodeTest(X509AttributeCertificate attrCert,
                                     byte[] encoding)
                              throws java.io.IOException
Throws:
java.io.IOException

testGenerateWithCert

private void testGenerateWithCert()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testGenerateWithPrincipal

private void testGenerateWithPrincipal()
                                throws java.lang.Exception
Throws:
java.lang.Exception

performTest

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

main

public static void main(java.lang.String[] args)