|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.security.SignatureSpi | +--java.security.Signature | +--COM.claymoresystems.provider.RawDSASignature | +--COM.claymoresystems.provider.DSASignature
Fields inherited from class java.security.Signature |
SIGN, state, UNINITIALIZED, VERIFY |
Fields inherited from class java.security.SignatureSpi |
appRandom |
Constructor Summary | |
DSASignature()
|
Method Summary | |
protected void |
engineInitSign(java.security.PrivateKey key)
SPI: Initializes this object for signing using the private key |
protected void |
engineInitVerify(java.security.PublicKey key)
SPI: Initializes this object for verification using the given key |
protected byte[] |
engineSign()
Sign the input, following FIPS-186. |
protected void |
engineUpdate(byte b)
SPI: Single byte update |
protected void |
engineUpdate(byte[] b,
int off,
int len)
SPI: Update with a buffer |
protected boolean |
engineVerify(byte[] signature)
SPI: Raw Verify |
Methods inherited from class COM.claymoresystems.provider.RawDSASignature |
engineGetParameter, engineSetParameter |
Methods inherited from class java.security.Signature |
clone, getAlgorithm, getInstance, getInstance, getParameter, getProvider, initSign, initSign, initVerify, initVerify, setParameter, setParameter, sign, sign, toString, update, update, update, verify |
Methods inherited from class java.security.SignatureSpi |
engineInitSign, engineSetParameter, engineSign |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DSASignature()
Method Detail |
protected void engineInitVerify(java.security.PublicKey key) throws java.security.InvalidKeyException
engineInitVerify
in class RawDSASignature
key
- the public keyjava.security.InvalidKeyException
- if the key class doesn't
implement DSAPublicKeyprotected void engineInitSign(java.security.PrivateKey key) throws java.security.InvalidKeyException
engineInitSign
in class RawDSASignature
key
- the private keyjava.security.InvalidKeyException
- if the key class doesn't
implement than DSAPrivateKeyprotected void engineUpdate(byte b) throws java.security.SignatureException
engineUpdate
in class RawDSASignature
java.security.SignatureException
- in case of errorprotected void engineUpdate(byte[] b, int off, int len) throws java.security.SignatureException
engineUpdate
in class RawDSASignature
java.security.SignatureException
- in case of errorprotected byte[] engineSign() throws java.security.SignatureException
engineSign
in class RawDSASignature
java.security.SignatureException
- if the engine isn't initialized
properlyprotected boolean engineVerify(byte[] signature) throws java.security.SignatureException
engineVerify
in class RawDSASignature
java.security.SignatureException
- bad input
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |