java.security
Class SignatureSpi
java.lang.Object
java.security.SignatureSpi
- Direct Known Subclasses:
- Signature
public abstract class SignatureSpi
- extends Object
appRandom
protected SecureRandom appRandom
SignatureSpi
public SignatureSpi()
engineInitVerify
protected abstract void engineInitVerify(PublicKey publicKey)
throws InvalidKeyException
- Throws:
InvalidKeyException
engineInitSign
protected abstract void engineInitSign(PrivateKey privateKey)
throws InvalidKeyException
- Throws:
InvalidKeyException
engineInitSign
protected void engineInitSign(PrivateKey privateKey,
SecureRandom random)
throws InvalidKeyException
- Throws:
InvalidKeyException
engineUpdate
protected abstract void engineUpdate(byte b)
throws SignatureException
- Throws:
SignatureException
engineUpdate
protected abstract void engineUpdate(byte[] b,
int off,
int len)
throws SignatureException
- Throws:
SignatureException
engineUpdate
protected void engineUpdate(ByteBuffer input)
engineSign
protected abstract byte[] engineSign()
throws SignatureException
- Throws:
SignatureException
engineSign
protected int engineSign(byte[] outbuf,
int offset,
int len)
throws SignatureException
- Throws:
SignatureException
engineVerify
protected abstract boolean engineVerify(byte[] sigBytes)
throws SignatureException
- Throws:
SignatureException
engineVerify
protected boolean engineVerify(byte[] sigBytes,
int offset,
int length)
throws SignatureException
- Throws:
SignatureException
engineSetParameter
protected abstract void engineSetParameter(String param,
Object value)
throws InvalidParameterException
- Deprecated. Use
engineSetParameter
- Throws:
InvalidParameterException
engineSetParameter
protected void engineSetParameter(AlgorithmParameterSpec params)
throws InvalidAlgorithmParameterException
- Throws:
InvalidAlgorithmParameterException
engineGetParameters
protected AlgorithmParameters engineGetParameters()
engineGetParameter
protected abstract Object engineGetParameter(String param)
throws InvalidParameterException
- Deprecated. There is no generally accepted parameter naming convention.
- Throws:
InvalidParameterException
clone
public Object clone()
throws CloneNotSupportedException
- Description copied from class:
Object
- Returns a new instance of the same class as the receiver, whose slots
have been filled in with the values in the slots of the receiver.
Classes which wish to support cloning must specify that they implement
the Cloneable interface, since the implementation checks for this.
- Overrides:
clone in class Object
- Returns:
- Object a shallow copy of this object.
- Throws:
CloneNotSupportedException - if the receiver's class does not
implement the interface Cloneable.
Please submit a feedback, bug or feature