public class BcCertTest
extends TestCase
Constructor | Description |
---|---|
BcCertTest() |
Modifier and Type | Method | Description |
---|---|---|
void |
checkCertificate(int id,
byte[] bytes) |
|
void |
checkCreation1() |
we generate a self signed certificate for the sake of testing - RSA
|
void |
checkCreation2() |
we generate a self signed certificate for the sake of testing - DSA
|
void |
checkCreation3() |
we generate a self signed certificate for the sake of testing - ECDSA
|
void |
checkCreation5() |
|
void |
checkCRLCreation1() |
|
void |
checkCRLCreation2() |
|
void |
checkCRLCreation3() |
|
void |
checkKeyUsage(int id,
byte[] bytes) |
|
void |
checkSelfSignedCertificate(int id,
byte[] bytes) |
|
java.lang.String |
getName() |
|
void |
testCertificates() |
|
void |
testForgedSignature() |
|
void |
testNullDerNullCert() |
public java.lang.String getName()
public void checkCertificate(int id, byte[] bytes)
public void checkKeyUsage(int id, byte[] bytes) throws java.io.IOException
java.io.IOException
public void checkSelfSignedCertificate(int id, byte[] bytes) throws OperatorCreationException, java.io.IOException, CertException
OperatorCreationException
java.io.IOException
CertException
public void checkCreation1() throws java.lang.Exception
java.lang.Exception
public void checkCreation2() throws java.lang.Exception
java.lang.Exception
public void checkCreation3()
public void checkCRLCreation1() throws java.lang.Exception
java.lang.Exception
public void checkCRLCreation2() throws java.lang.Exception
java.lang.Exception
public void checkCRLCreation3() throws java.lang.Exception
java.lang.Exception
public void checkCreation5() throws java.lang.Exception
java.lang.Exception
public void testForgedSignature() throws java.lang.Exception
java.lang.Exception
public void testNullDerNullCert() throws java.lang.Exception
java.lang.Exception
public void testCertificates() throws java.lang.Exception
java.lang.Exception