org.glite.voms.ac
Class ACCerts

java.lang.Object
  extended by org.glite.voms.ac.ACCerts
All Implemented Interfaces:
org.bouncycastle.asn1.DEREncodable

public class ACCerts
extends Object
implements org.bouncycastle.asn1.DEREncodable

This class represents the ACCerts extension which may be present in the AC.

Author:
Vincenzo Ciaschini.

Constructor Summary
ACCerts()
          Creates an empty ACCerts object.
ACCerts(org.bouncycastle.asn1.ASN1Sequence seq)
          Creates an ACCerts starting from a sequence.
 
Method Summary
 void addCert(org.bouncycastle.asn1.x509.X509CertificateStructure cert)
          Manually adds a certificate to the list.
 List getCerts()
          Gets the certificates.
 org.bouncycastle.asn1.DERObject getDERObject()
          Makes a DERObject representation.
static ACCerts getInstance(org.bouncycastle.asn1.ASN1Sequence seq)
          static variant of the constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ACCerts

public ACCerts()
Creates an empty ACCerts object.


ACCerts

public ACCerts(org.bouncycastle.asn1.ASN1Sequence seq)
Creates an ACCerts starting from a sequence.

Parameters:
seq - the Sequence.
Throws:
IllegalArgumentException - if Certificates are not supported or if there is an encoding error.
Method Detail

getInstance

public static ACCerts getInstance(org.bouncycastle.asn1.ASN1Sequence seq)
static variant of the constructor.

See Also:
ACCerts(ASN1Sequence seq)

addCert

public void addCert(org.bouncycastle.asn1.x509.X509CertificateStructure cert)
Manually adds a certificate to the list.

Parameters:
cert - The certificate to add.

getCerts

public List getCerts()
Gets the certificates.

Returns:
the list of certificates.

getDERObject

public org.bouncycastle.asn1.DERObject getDERObject()
Makes a DERObject representation.

Specified by:
getDERObject in interface org.bouncycastle.asn1.DEREncodable
Returns:
the DERObject


Copyright © 2012. All Rights Reserved.