    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class w3c.www.dsig.SigBlockExtension

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

public class SigBlockExtension
extends Object

DSig SigBlockExtension class.

This class is a representation of the DSig SigBlock as defined in the DSig label specification. A SigBlock consists of some AttribInfo and zero or more signatures.

The class allows to get and set the sigblock's attribinfo, add remove, etc. signature suites, and to verify the signatures contained in the signatures suites.

##

EXTENSION_ID
  The name of the extension identifier

##

SigBlockExtension()
  Create an empty Signature Block

##

addSigSuite(SignatureSuite)
  Add a SigSuite to this SigBlock's list of signatures suite.
getAttribInfo()
  Returns this SigBlock's AttribInfo object.
getSigSuiteAt(int)
  Return the signature at position index in this SigBlock.
getSigSuites(String)
  Get all signature suites with the identifying URL suitename; Returns an array of size 0 if none are found.
parse(Vector)
  parse a UserOptionValue into a SigBlock
removeAllSigSuites()
  Remove all signature suites from the sigblock.
removeSigSuite(SignatureSuite)
  Removes a SigSuite from the SigBlock
setAttribInfo(AttribInfo)
  Sets the SigBlock's AttribInfo to the given object.
sigSuites()
  Return an enumeration of all signature suites in this sigblock.
size()
  Returns the number of SigSuites that are stored in this SigBlock object.
toString()
  Return an S-Expression string representation of this SigBlock extension.
toVector()
  Return an S-Expression Vector representation of this SigBlock extension.
verify(DSigLabelInterface)
  Verify the signature suites in this sigblock according to the user's default policy.
verify(DSigLabelInterface, String)
  Verify if all signatures suites with the identifying URL suitename in this sigblock correctly sign the given label.
verifyAll(DSigLabelInterface)
  Verify if all signatures suites in this sigblock correctly sign the given label.

##

EXTENSION_ID

     public static final String EXTENSION_ID

  The name of the extension identifier

##

SigBlockExtension

     public SigBlockExtension()

  Create an empty Signature Block

##

verify

     public Trivalue verify(DSigLabelInterface label)

  Verify the signature suites in this sigblock according to the user's default policy. Currently hardcoded to be equivalent to verifyAll(label).

verifyAll

     public Trivalue verifyAll(DSigLabelInterface label)

  Verify if all signatures suites in this sigblock correctly sign the given label.

verify

     public Trivalue verify(DSigLabelInterface label,
                            String suiteName)

  Verify if all signatures suites with the identifying URL suitename in this sigblock correctly sign the given label.

parse

     public void parse(Vector v) throws DSigException

  parse a UserOptionValue into a SigBlock

  Throws: DSigException
    if the data cannot be parsed correctly.

getAttribInfo

     public AttribInfo getAttribInfo()

  Returns this SigBlock's AttribInfo object.

setAttribInfo

     public void setAttribInfo(AttribInfo ainfo)

  Sets the SigBlock's AttribInfo to the given object.

addSigSuite

     public void addSigSuite(SignatureSuite suite)

  Add a SigSuite to this SigBlock's list of signatures suite.

removeSigSuite

     public boolean removeSigSuite(SignatureSuite suite)

  Removes a SigSuite from the SigBlock

  Returns:
    true if the SigSuite was found and removed, false otherwise.

removeAllSigSuites

     public void removeAllSigSuites()

  Remove all signature suites from the sigblock. Usefull when the label has been modified so that the signatures would be invalid anyway.

getSigSuites

     public SignatureSuite[] getSigSuites(String suiteName)

  Get all signature suites with the identifying URL suitename; Returns an array of size 0 if none are found.

sigSuites

     public Enumeration sigSuites()

  Return an enumeration of all signature suites in this sigblock.

size

     public int size()

  Returns the number of SigSuites that are stored in this SigBlock object.

getSigSuiteAt

     public SignatureSuite getSigSuiteAt(int index) throws ArrayIndexOutOfBoundsException

  Return the signature at position index in this SigBlock.

  Throws: ArrayIndexOutOfBoundsException
    if the index is not valid.

toVector

     public Vector toVector()

  Return an S-Expression Vector representation of this SigBlock extension.

toString

     public String toString()

  Return an S-Expression string representation of this SigBlock extension.

  Overrides:
    toString in class Object

    All Packages  Class Hierarchy  This Package  Previous  Next  Index