public class

AttrCertExample

extends Object
java.lang.Object
   ↳ org.bouncycastle.x509.examples.AttrCertExample

Class Overview

A simple example that generates an attribute certificate.

Summary

Public Constructors
AttrCertExample()
Public Methods
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(String[] args)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public AttrCertExample ()

Public Methods

public static X509Certificate createAcIssuerCert (PublicKey pubKey, PrivateKey privKey)

we generate the AC issuer's certificate

Throws
Exception

public static X509Certificate createClientCert (PublicKey pubKey, PrivateKey caPrivKey, PublicKey caPubKey)

we generate a certificate signed by our CA's intermediate certficate

Throws
Exception

public static void main (String[] args)

Throws
Exception