org.glite.voms.ac

Class ACCerts

Implemented Interfaces:
DEREncodable

public class ACCerts
extends java.lang.Object
implements DEREncodable

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

Constructor Summary

ACCerts()
Creates an empty ACCerts object.
ACCerts(ASN1Sequence seq)
Creates an ACCerts starting from a sequence.

Method Summary

void
addCert(X509CertificateStructure cert)
Manually adds a certificate to the list.
List
getCerts()
Gets the certificates.
DERObject
getDERObject()
Makes a DERObject representation.
static ACCerts
getInstance(ASN1Sequence seq)
static variant of the constructor.

Constructor Details

ACCerts

public ACCerts()
Creates an empty ACCerts object.

ACCerts

public ACCerts(ASN1Sequence seq)
Creates an ACCerts starting from a sequence.
Parameters:
seq - the Sequence.

Method Details

addCert

public void addCert(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 DERObject getDERObject()
Makes a DERObject representation.
Returns:
the DERObject

getInstance

public static ACCerts getInstance(ASN1Sequence seq)
static variant of the constructor.
See Also:
ACCerts(ASN1Sequence seq)