All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.www.dsig.SigSuiteECDSS

java.lang.Object
   |
   +----w3c.www.dsig.SignatureSuite
           |
           +----w3c.www.dsig.SigSuiteECDSS

public final class SigSuiteECDSS
extends SignatureSuite
This class implements the DSS signature suite for the W3C's DSig as defined in http://www.w3.org/PICS/DSig/ECDSS-1_0.html.

Application programmers should never access this class via its name w3c.www.dsig.SigSuiteECDSS. You should use SigSuiteRegistry.getInstance(), sigblock.getSigSuite(), etc.


Variable Index

 o ECDSSURL
The string defined to indentify the ECDSS (Elliptic Curve with Digital Signature Standard) signature suite implemented by this class, http://www.w3.org/PICS/DSig/ECDSS-1_0.html.

Constructor Index

 o SigSuiteECDSS()
Constructor for use by w3c.www.dsig.SigSuiteRegistry.getInstance().

Method Index

 o getBy()
Return the contents of the ByX field.
 o getByType()
Return the type of the 'By' information used in this signature suite object.
 o getKeyLength()
Return the length of the key used to generate this signature.
 o setBy(String, Object)
Set the By information in the label.
 o sign(DSigLabelInterface, PrivateKey)
Sign the given label using the given private key, which needs to be an instance of a DSAPublicKey.
 o verify(DSigLabelInterface, PublicKey)
Verify if this signature suite object correctly signs the given label with the given public key.

Variables

 o ECDSSURL
 public static final String ECDSSURL
The string defined to indentify the ECDSS (Elliptic Curve with Digital Signature Standard) signature suite implemented by this class, http://www.w3.org/PICS/DSig/ECDSS-1_0.html.

Constructors

 o SigSuiteECDSS
 public SigSuiteECDSS() throws NoSuchAlgorithmException
Constructor for use by w3c.www.dsig.SigSuiteRegistry.getInstance(). Application programmers should not need to access this constructor directly.

Throws: NoSuchAlgorithmException
if either ECC or DSS algorithms cannot be found.

Methods

 o getKeyLength
 public int getKeyLength()
Return the length of the key used to generate this signature. To be more precise, return the length of the number p, which is only one part of the key. Note that the keylength will only be available after sign() or verify() has been called, otherwise this method will return -1.

Overrides:
getKeyLength in class SignatureSuite
 o sign
 public DSigLabelInterface sign(DSigLabelInterface label,
                                PrivateKey privkey)
Sign the given label using the given private key, which needs to be an instance of a DSAPublicKey. Signing automatically sets the ByName property to "[anonymous]", that should be set appropriately after signing. If this signature suite object already contains a signature, it will be replaced by the new one.

Overrides:
sign in class SignatureSuite
 o verify
 public Trivalue verify(DSigLabelInterface label,
                        PublicKey pubkey)
Verify if this signature suite object correctly signs the given label with the given public key. pubkey must either be an instance of DSAPublicKey or null. In that case the public key will be extracted from the signature suite if it is specified either as ByKey or as ByName (trying a certificate lookup). If no valid public key can be found, verify returns unknown. Else the signature will be verified using that public key returning unknown if there was any other problem verifying the signature or one of true/ false to indicate the result.

Overrides:
verify in class SignatureSuite
 o getByType
 public String getByType()
Return the type of the 'By' information used in this signature suite object.

Overrides:
getByType in class SignatureSuite
 o getBy
 public Object getBy()
Return the contents of the ByX field.

Overrides:
getBy in class SignatureSuite
 o setBy
 public SignatureSuite setBy(String type,
                             Object signer)
Set the By information in the label.

Overrides:
setBy in class SignatureSuite

All Packages  Class Hierarchy  This Package  Previous  Next  Index