public abstract class AbstractTlsSigner extends java.lang.Object implements TlsSigner
Modifier and Type | Field and Description |
---|---|
protected TlsContext |
context |
Constructor and Description |
---|
AbstractTlsSigner() |
Modifier and Type | Method and Description |
---|---|
Signer |
createSigner(AsymmetricKeyParameter privateKey) |
Signer |
createVerifyer(AsymmetricKeyParameter publicKey) |
byte[] |
generateRawSignature(AsymmetricKeyParameter privateKey,
byte[] md5AndSha1) |
void |
init(TlsContext context) |
boolean |
verifyRawSignature(byte[] sigBytes,
AsymmetricKeyParameter publicKey,
byte[] md5AndSha1) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createSigner, createVerifyer, generateRawSignature, isValidPublicKey, verifyRawSignature
protected TlsContext context
public void init(TlsContext context)
public byte[] generateRawSignature(AsymmetricKeyParameter privateKey, byte[] md5AndSha1) throws CryptoException
generateRawSignature
in interface TlsSigner
CryptoException
public boolean verifyRawSignature(byte[] sigBytes, AsymmetricKeyParameter publicKey, byte[] md5AndSha1) throws CryptoException
verifyRawSignature
in interface TlsSigner
CryptoException
public Signer createSigner(AsymmetricKeyParameter privateKey)
createSigner
in interface TlsSigner
public Signer createVerifyer(AsymmetricKeyParameter publicKey)
createVerifyer
in interface TlsSigner