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.
 
   
  -   ECDSSURL 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.
   
  -   SigSuiteECDSS() SigSuiteECDSS()
-   Constructor for use by
 w3c.www.dsig.SigSuiteRegistry.getInstance().
   
  -   getBy() getBy()
-   Return the contents of the ByXfield.
-   getByType() getByType()
-   Return the type of the 'By' information used in this signature
 suite object.
  
-   getKeyLength() getKeyLength()
-   Return the length of the key used to generate this signature.
  
-   setBy(String, Object) setBy(String, Object)
-   Set the Byinformation in the label.
-   sign(DSigLabelInterface, PrivateKey) sign(DSigLabelInterface, PrivateKey)
-   Sign the given label using the given private key, which
 needs to be an instance of a DSAPublicKey.
  
-   verify(DSigLabelInterface, PublicKey) verify(DSigLabelInterface, PublicKey)
-   Verify if this signature suite object correctly signs the
 given label with the given public key.
   
 ECDSSURL
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.
 
   
 SigSuiteECDSS
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.
  
 
   
 getKeyLength
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()orverify()has been called,
 otherwise this method will return -1.
   
- 
    -  Overrides:
    
-  getKeyLength in class SignatureSuite
  
 
 sign
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
  
 
 verify
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
  
 
 getByType
getByType
 public String getByType()
  -  Return the type of the 'By' information used in this signature
 suite object.
   
- 
    -  Overrides:
    
-  getByType in class SignatureSuite
  
 
 getBy
getBy
 public Object getBy()
  -  Return the contents of the ByXfield.
   
- 
    -  Overrides:
    
-  getBy in class SignatureSuite
  
 
 setBy
setBy
 public SignatureSuite setBy(String type,
                             Object signer)
  -  Set the Byinformation in the label.
   
- 
    -  Overrides:
    
-  setBy in class SignatureSuite
  
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index