All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.www.dsig.AttribInfo

java.lang.Object
   |
   +----w3c.www.dsig.AttribInfo

public class AttribInfo
extends Object
DSig SigBlock's Attribution info class.

In the DSig SigBlock the attribution info is a list of certificates intended to help the receiver of the SigBlock to verify the signatures (by increasing his trust into the signer). This class implements the attribinfo as a vector of SigCert objects. Methods are provided to add, remove certs, get a specific SigCert, etc.


Variable Index

 o _ATTRIBINFO_ID
The magic string identifying an attribution info, AttribInfo.

Constructor Index

 o AttribInfo()
Creates an empty AttribInfo.
 o AttribInfo(SigCert[])
Creates an AttribInfo from the specified list of certificates.

Method Index

 o addCert(SigCert)
Adds the specified certificate to this AttribInfo.
 o addCerts(SigCert[])
Add all the certificates in the given certificate array to this AttribInfo.
 o certificates()
Return an enumeration of all the SigCert certificates in this attribinfo.
 o containsCert(SigCert)
Find out if the given cert is contained in this AttribInfo.
 o getCertAt(int)
Return the certificate at position index in this AttribInfo.
 o removeCert(SigCert)
Removes the first occurence of the specified certificate object from the list of certificates.
 o size()
Returns the number of certificates in this AttribInfo.
 o toString()
Returns an S-Expression string representation of this AttribInfo object.

Variables

 o _ATTRIBINFO_ID
 public static final String _ATTRIBINFO_ID
The magic string identifying an attribution info, AttribInfo.

Constructors

 o AttribInfo
 public AttribInfo()
Creates an empty AttribInfo.

 o AttribInfo
 public AttribInfo(SigCert certs[])
Creates an AttribInfo from the specified list of certificates.

Methods

 o containsCert
 public boolean containsCert(SigCert cert)
Find out if the given cert is contained in this AttribInfo. Return true if it is, false otherwise.

 o addCert
 public boolean addCert(SigCert cert)
Adds the specified certificate to this AttribInfo. Returns true if added, false otherwise (i.e. already present)

 o addCerts
 public void addCerts(SigCert certArray[])
Add all the certificates in the given certificate array to this AttribInfo.

 o removeCert
 public boolean removeCert(SigCert cert)
Removes the first occurence of the specified certificate object from the list of certificates.

Returns:
true if found, false otherwise.
 o getCertAt
 public SigCert getCertAt(int index) throws ArrayIndexOutOfBoundsException
Return the certificate at position index in this AttribInfo.

Throws: ArrayIndexOutOfBoundsException
if the index is not valid.
 o certificates
 public Enumeration certificates()
Return an enumeration of all the SigCert certificates in this attribinfo.

 o size
 public int size()
Returns the number of certificates in this AttribInfo.

 o toString
 public String toString()
Returns an S-Expression string representation of this AttribInfo object.

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index