    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Interface w3c.www.dsig.DSigLabelInterface

public interface DSigLabelInterface

DSig-1.0 defines two PICS-1.1 extensions. The DSig library is therefore written as an extension to an existing PICS Parser or Label object. This interface defines the necessary methods for a given PICS label object to use the DSig-1.0 library, since these methods may be called inside the DSig library during the course of a DSig evaluation.

##

getFor()
  Get the 'for' attribute of the PICS-1.1 option
getResInfo()
  Get the DSig Resource Information (resinfo).
getSigBlock()
  Set the DSig Resource Information (resinfo).
setResInfo(ResInfoExtension)
  Set the DSig Resource Information (resinfo).
setSigBlock(SigBlockExtension)
  Set the DSig Signature Block (sigblock)
toDSigString()
  Returns a String containing the canonical PICS 1.1 representation of this Label, suitable for signing.
toExcludedDSigString(Hashtable)
  Returns the canonicallized form of the DSig label with fields selectively included or excluded according the sigdata.
updateDSig()
  The changes made in ResInfo and SigBlock extension may not be automatic; calling this method updates the original PICS1.1 Label and reflect the changes in resinfo and sigblock for the given PICS Label object implementing the DSigLabelInterface.

##

getFor

     public abstract String getFor()

  Get the 'for' attribute of the PICS-1.1 option

updateDSig

     public abstract void updateDSig()

  The changes made in ResInfo and SigBlock extension may not be automatic; calling this method updates the original PICS1.1 Label and reflect the changes in resinfo and sigblock for the given PICS Label object implementing the DSigLabelInterface.

getSigBlock

     public abstract SigBlockExtension getSigBlock()

  Set the DSig Resource Information (resinfo).

setSigBlock

     public abstract void setSigBlock(SigBlockExtension sigblock)

  Set the DSig Signature Block (sigblock)

getResInfo

     public abstract ResInfoExtension getResInfo()

  Get the DSig Resource Information (resinfo).

setResInfo

     public abstract void setResInfo(ResInfoExtension resinfo)

  Set the DSig Resource Information (resinfo).

toExcludedDSigString

     public abstract String toExcludedDSigString(Hashtable sigdata) throws DSigException

  Returns the canonicallized form of the DSig label with fields selectively included or excluded according the sigdata. Please refer to the DSig Label specification for more detail.

  Throws: DSigException
    if the format of the sigdata is incorrect.

toDSigString

     public abstract String toDSigString()

  Returns a String containing the canonical PICS 1.1 representation of this Label, suitable for signing.

  Returns:
    A String with a valid canonicalized PICS 1.1 label representation of this Label object.

    All Packages  Class Hierarchy  This Package  Previous  Next  Index