|
For the latest news and information visit The GNU Crypto project |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.security.SignatureSpi
gnu.crypto.jce.sig.SignatureAdapter
The implementation of a generic Signature
adapter class
to wrap gnu.crypto signature instances.
This class defines the Service Provider Interface (SPI) for the
Signature
class, which provides the functionality of a
digital signature algorithm. Digital signatures are used for authentication
and integrity assurance of digital data.
All the abstract methods in the SignatureSpi
class are
implemented by this class and all its sub-classes.
All the implementations which subclass this object, and which are serviced by
the GNU Crypto provider implement the Cloneable
interface.
Field Summary |
---|
Fields inherited from class java.security.SignatureSpi |
---|
appRandom |
Constructor Summary | |
---|---|
protected |
SignatureAdapter(String sigName,
ISignatureCodec codec)
Trivial protected constructor. |
Method Summary | |
---|---|
Object |
clone()
|
Object |
engineGetParameter(String param)
|
void |
engineInitSign(PrivateKey privateKey)
|
void |
engineInitSign(PrivateKey privateKey,
SecureRandom random)
|
void |
engineInitVerify(PublicKey publicKey)
|
void |
engineSetParameter(AlgorithmParameterSpec params)
|
void |
engineSetParameter(String param,
Object value)
|
byte[] |
engineSign()
|
int |
engineSign(byte[] outbuf,
int offset,
int len)
|
void |
engineUpdate(byte b)
|
void |
engineUpdate(byte[] b,
int off,
int len)
|
boolean |
engineVerify(byte[] sigBytes)
|
Methods inherited from class java.security.SignatureSpi |
---|
engineGetParameters, engineVerify |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected SignatureAdapter(String sigName, ISignatureCodec codec)
sigName
- the canonical name of the signature scheme.codec
- the signature codec engine to use with this scheme.Method Detail |
public Object clone()
public void engineInitVerify(PublicKey publicKey) throws InvalidKeyException
InvalidKeyException
public void engineInitSign(PrivateKey privateKey) throws InvalidKeyException
InvalidKeyException
public void engineInitSign(PrivateKey privateKey, SecureRandom random) throws InvalidKeyException
InvalidKeyException
public void engineUpdate(byte b) throws SignatureException
SignatureException
public void engineUpdate(byte[] b, int off, int len) throws SignatureException
SignatureException
public byte[] engineSign() throws SignatureException
SignatureException
public int engineSign(byte[] outbuf, int offset, int len) throws SignatureException
SignatureException
public boolean engineVerify(byte[] sigBytes) throws SignatureException
SignatureException
public void engineSetParameter(String param, Object value) throws InvalidParameterException
InvalidParameterException
public void engineSetParameter(AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException
InvalidAlgorithmParameterException
public Object engineGetParameter(String param) throws InvalidParameterException
InvalidParameterException
|
For the latest news and information visit The GNU Crypto project |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |