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.


Variable Index

 o EXTENSION_ID
The name of the extension identifier

Constructor Index

 o SigBlockExtension()
Create an empty Signature Block

Method Index

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

Variables

 o EXTENSION_ID
 public static final String EXTENSION_ID
The name of the extension identifier

Constructors

 o SigBlockExtension
 public SigBlockExtension()
Create an empty Signature Block

Methods

 o 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).

 o verifyAll
 public Trivalue verifyAll(DSigLabelInterface label)
Verify if all signatures suites in this sigblock correctly sign the given label.

 o 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.

 o parse
 public void parse(Vector v) throws DSigException
parse a UserOptionValue into a SigBlock

Throws: DSigException
if the data cannot be parsed correctly.
 o getAttribInfo
 public AttribInfo getAttribInfo()
Returns this SigBlock's AttribInfo object.

 o setAttribInfo
 public void setAttribInfo(AttribInfo ainfo)
Sets the SigBlock's AttribInfo to the given object.

 o addSigSuite
 public void addSigSuite(SignatureSuite suite)
Add a SigSuite to this SigBlock's list of signatures suite.

 o removeSigSuite
 public boolean removeSigSuite(SignatureSuite suite)
Removes a SigSuite from the SigBlock

Returns:
true if the SigSuite was found and removed, false otherwise.
 o 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.

 o 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.

 o sigSuites
 public Enumeration sigSuites()
Return an enumeration of all signature suites in this sigblock.

 o size
 public int size()
Returns the number of SigSuites that are stored in this SigBlock object.

 o 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.
 o toVector
 public Vector toVector()
Return an S-Expression Vector representation of this SigBlock extension.

 o 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