org.bouncycastle.x509.examples
Class AttrCertExample
java.lang.Object
org.bouncycastle.x509.examples.AttrCertExample
public class AttrCertExample
extends java.lang.Object
A simple example that generates an attribute certificate.
static X509Certificate | createAcIssuerCert(PublicKey pubKey, PrivateKey privKey) - we generate the AC issuer's certificate
|
static X509Certificate | createClientCert(PublicKey pubKey, PrivateKey caPrivKey, PublicKey caPubKey) - we generate a certificate signed by our CA's intermediate certficate
|
static void | main(args[] )
|
createAcIssuerCert
public static X509Certificate createAcIssuerCert(PublicKey pubKey,
PrivateKey privKey)
throws Exception
we generate the AC issuer's certificate
createClientCert
public static X509Certificate createClientCert(PublicKey pubKey,
PrivateKey caPrivKey,
PublicKey caPubKey)
throws Exception
we generate a certificate signed by our CA's intermediate certficate
main
public static void main(args[] )
throws Exception