ostore.security
Class QSSha1RsaSignature
java.lang.Object
|
+--ostore.security.QSSha1RsaSignature
- All Implemented Interfaces:
- QSSignature, QuickSerializable
- public class QSSha1RsaSignature
- extends Object
- implements QSSignature
A QSSignature subtype for RSA/SHA-1 signatures.
- Version:
- $Id: QSSha1RsaSignature.java,v 1.12 2002/07/20 22:19:35 srhea Exp $
- Author:
- Sean C. Rhea
- See Also:
SignedQS
QSSha1RsaSignature
public QSSha1RsaSignature()
- The default constructor.
QSSha1RsaSignature
public QSSha1RsaSignature(InputBuffer buffer)
- The deserialization constructor. See the comments at the top of
QuickSerializable
for details.
algorithm
public String algorithm()
- Description copied from interface:
QSSignature
- The signing algorithm. Using this and the value of
QSSignature.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)
.
- Specified by:
algorithm
in interface QSSignature
- Following copied from interface:
ostore.security.QSSignature
- Returns:
- the name of the digital signature algorithm, for instance,
"SHA-1/RSA/PKCS#1"
provider
public String provider()
- Description copied from interface:
QSSignature
- The signing algorithm's provider, as used with
getInstance
. Using this and the value of QSSignature.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)
.
- Specified by:
provider
in interface QSSignature
- Following copied from interface:
ostore.security.QSSignature
- Returns:
- the name of the digital signature algorithm provider, for
instance, "CryptixCrypto"
serialize
public void serialize(OutputBuffer buffer)
- Description copied from interface:
QuickSerializable
- Add the object to the
buffer
.
- Specified by:
serialize
in interface QuickSerializable
- Following copied from interface:
ostore.util.QuickSerializable
- Parameters:
buffer
- the output buffer to add the object to
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object