    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.

##

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

##

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

##

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

##

_ATTRIBINFO_ID

     public static final String _ATTRIBINFO_ID

  The magic string identifying an attribution info, `AttribInfo`.

##

AttribInfo

     public AttribInfo()

  Creates an empty AttribInfo.

AttribInfo

     public AttribInfo(SigCert certs[])

  Creates an AttribInfo from the specified list of certificates.

##

containsCert

     public boolean containsCert(SigCert cert)

  Find out if the given cert is contained in this AttribInfo. Return true if it is, false otherwise.

addCert

     public boolean addCert(SigCert cert)

  Adds the specified certificate to this AttribInfo. Returns true if added, false otherwise (i.e. already present)

addCerts

     public void addCerts(SigCert certArray[])

  Add all the certificates in the given certificate array to this AttribInfo.

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.

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.

certificates

     public Enumeration certificates()

  Return an enumeration of all the SigCert certificates in this attribinfo.

size

     public int size()

  Returns the number of certificates in this AttribInfo.

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