public class

CertificateCollection

extends Object
java.lang.Object
   ↳ com.microstrategy.web.certificate.CertificateCollection

Class Overview

This class represents a collection of certificates.

Summary

Public Constructors
CertificateCollection()
Default constructor.
Public Methods
void add(CertificateReference ref)
Adds the given certificate to the end of the collection.
String getXML()
Returns a serialized form of the class.
Iterator<CertificateReference> iterator()
Returns an iterator over the list of certificates.
void loadFromXML(File f)
Uses the contents of the given file to populate the state of the collection from XML.
void revoke(String serialNumber)
Marks a certificate with the given serial number as revoked.
int size()
Returns the size of the collection.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CertificateCollection ()

Default constructor.

Public Methods

public void add (CertificateReference ref)

Adds the given certificate to the end of the collection.

Parameters
ref The certificate to add.

public String getXML ()

Returns a serialized form of the class.

Returns
  • An XML string representing the contents of the collection.

public Iterator<CertificateReference> iterator ()

Returns an iterator over the list of certificates.

Returns
  • An iterator on the certificate list.

public void loadFromXML (File f)

Uses the contents of the given file to populate the state of the collection from XML.

Parameters
f The file to read from.
Throws
SAXException Thrown if there is an error in the XML format.
IOException Thrown if there is a file error.

public void revoke (String serialNumber)

Marks a certificate with the given serial number as revoked.

Parameters
serialNumber The serial number of the certificate to remove.

public int size ()

Returns the size of the collection.

Returns
  • The size of the collection.