org.gudy.bouncycastle.asn1.x509
Class V2AttributeCertificateInfoGenerator

java.lang.Object
  extended by org.gudy.bouncycastle.asn1.x509.V2AttributeCertificateInfoGenerator

public class V2AttributeCertificateInfoGenerator
extends Object

Generator for Version 2 AttributeCertificateInfo

 AttributeCertificateInfo ::= SEQUENCE {
       version              AttCertVersion -- version is v2,
       holder               Holder,
       issuer               AttCertIssuer,
       signature            AlgorithmIdentifier,
       serialNumber         CertificateSerialNumber,
       attrCertValidityPeriod   AttCertValidityPeriod,
       attributes           SEQUENCE OF Attribute,
       issuerUniqueID       UniqueIdentifier OPTIONAL,
       extensions           Extensions OPTIONAL
 }
 


Constructor Summary
V2AttributeCertificateInfoGenerator()
           
 
Method Summary
 void addAttribute(Attribute attribute)
           
 void addAttribute(String oid, ASN1Encodable value)
           
 AttributeCertificateInfo generateAttributeCertificateInfo()
           
 void setEndDate(DERGeneralizedTime endDate)
           
 void setExtensions(X509Extensions extensions)
           
 void setHolder(Holder holder)
           
 void setIssuer(AttCertIssuer issuer)
           
 void setIssuerUniqueID(DERBitString issuerUniqueID)
           
 void setSerialNumber(DERInteger serialNumber)
           
 void setSignature(AlgorithmIdentifier signature)
           
 void setStartDate(DERGeneralizedTime startDate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

V2AttributeCertificateInfoGenerator

public V2AttributeCertificateInfoGenerator()
Method Detail

setHolder

public void setHolder(Holder holder)

addAttribute

public void addAttribute(String oid,
                         ASN1Encodable value)

addAttribute

public void addAttribute(Attribute attribute)
Parameters:
attribute -

setSerialNumber

public void setSerialNumber(DERInteger serialNumber)

setSignature

public void setSignature(AlgorithmIdentifier signature)

setIssuer

public void setIssuer(AttCertIssuer issuer)

setStartDate

public void setStartDate(DERGeneralizedTime startDate)

setEndDate

public void setEndDate(DERGeneralizedTime endDate)

setIssuerUniqueID

public void setIssuerUniqueID(DERBitString issuerUniqueID)

setExtensions

public void setExtensions(X509Extensions extensions)

generateAttributeCertificateInfo

public AttributeCertificateInfo generateAttributeCertificateInfo()