ostore.security
Interface QSSignature

All Superinterfaces:
QuickSerializable
All Known Implementing Classes:
QSSha1RsaSignature, ThresholdSignature

public interface QSSignature
extends QuickSerializable

A class used to map a particular digital signature algorithm and provider to a type code, for more efficient encoding.

Version:
$Id: QSSignature.java,v 1.5 2001/10/27 01:00:12 srhea Exp $
Author:
Sean C. Rhea
See Also:
SignedQS

Method Summary
 String algorithm()
          The signing algorithm.
 String provider()
          The signing algorithm's provider, as used with getInstance.
 
Methods inherited from interface ostore.util.QuickSerializable
to_bytes, type_code
 

Method Detail

algorithm

public String algorithm()
The signing algorithm. Using this and the value of provider(), a user of this class should be able to produce a signature engine to pass to SignedQS.verify(java.security.PublicKey, java.security.Signature) by calling Signature.getInstance(String, String).
Returns:
the name of the digital signature algorithm, for instance, "SHA-1/RSA/PKCS#1"

provider

public String provider()
The signing algorithm's provider, as used with getInstance. Using this and the value of algorithm(), a user of this class should be able to produce a signature engine to pass to SignedQS.verify(java.security.PublicKey, java.security.Signature) by calling Signature.getInstance(String, String).
Returns:
the name of the digital signature algorithm provider, for instance, "CryptixCrypto"