public abstract class TlsDSASigner extends AbstractTlsSigner
context
Constructor and Description |
---|
TlsDSASigner() |
Modifier and Type | Method and Description |
---|---|
protected abstract DSA |
createDSAImpl() |
Signer |
createSigner(SignatureAndHashAlgorithm algorithm,
AsymmetricKeyParameter privateKey) |
Signer |
createVerifyer(SignatureAndHashAlgorithm algorithm,
AsymmetricKeyParameter publicKey) |
byte[] |
generateRawSignature(SignatureAndHashAlgorithm algorithm,
AsymmetricKeyParameter privateKey,
byte[] hash) |
protected abstract short |
getSignatureAlgorithm() |
protected Signer |
makeSigner(SignatureAndHashAlgorithm algorithm,
boolean raw,
boolean forSigning,
CipherParameters cp) |
boolean |
verifyRawSignature(SignatureAndHashAlgorithm algorithm,
byte[] sigBytes,
AsymmetricKeyParameter publicKey,
byte[] hash) |
createSigner, createVerifyer, generateRawSignature, init, verifyRawSignature
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isValidPublicKey
public byte[] generateRawSignature(SignatureAndHashAlgorithm algorithm, AsymmetricKeyParameter privateKey, byte[] hash) throws CryptoException
CryptoException
public boolean verifyRawSignature(SignatureAndHashAlgorithm algorithm, byte[] sigBytes, AsymmetricKeyParameter publicKey, byte[] hash) throws CryptoException
CryptoException
public Signer createSigner(SignatureAndHashAlgorithm algorithm, AsymmetricKeyParameter privateKey)
public Signer createVerifyer(SignatureAndHashAlgorithm algorithm, AsymmetricKeyParameter publicKey)
protected Signer makeSigner(SignatureAndHashAlgorithm algorithm, boolean raw, boolean forSigning, CipherParameters cp)
protected abstract short getSignatureAlgorithm()
protected abstract DSA createDSAImpl()