public class TlsRSASigner extends AbstractTlsSigner
context
Constructor and Description |
---|
TlsRSASigner() |
Modifier and Type | Method and Description |
---|---|
protected AsymmetricBlockCipher |
createRSAImpl() |
Signer |
createSigner(SignatureAndHashAlgorithm algorithm,
AsymmetricKeyParameter privateKey) |
Signer |
createVerifyer(SignatureAndHashAlgorithm algorithm,
AsymmetricKeyParameter publicKey) |
byte[] |
generateRawSignature(SignatureAndHashAlgorithm algorithm,
AsymmetricKeyParameter privateKey,
byte[] hash) |
boolean |
isValidPublicKey(AsymmetricKeyParameter publicKey) |
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
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)
public boolean isValidPublicKey(AsymmetricKeyParameter publicKey)
protected Signer makeSigner(SignatureAndHashAlgorithm algorithm, boolean raw, boolean forSigning, CipherParameters cp)
protected AsymmetricBlockCipher createRSAImpl()