Package org.bouncycastle.tls.crypto
Interface TlsSigner
- All Known Implementing Classes:
BcTlsDSASigner,BcTlsDSSSigner,BcTlsECDSA13Signer,BcTlsECDSASigner,BcTlsEd25519Signer,BcTlsEd448Signer,BcTlsRSAPSSSigner,BcTlsRSASigner,BcTlsSigner,BcTlsSM2Signer,JcaTlsDSASigner,JcaTlsDSSSigner,JcaTlsECDSA13Signer,JcaTlsECDSASigner,JcaTlsEd25519Signer,JcaTlsEd448Signer,JcaTlsEdDSASigner,JcaTlsRSAPSSSigner,JcaTlsRSASigner
public interface TlsSigner
Base interface for a TLS signer that works on raw message digests.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]generateRawSignature(SignatureAndHashAlgorithm algorithm, byte[] hash) Generate an encoded signature based on the passed in hash.getStreamSigner(SignatureAndHashAlgorithm algorithm)
-
Method Details
-
generateRawSignature
Generate an encoded signature based on the passed in hash.- Parameters:
algorithm- the signature algorithm to use.hash- the hash calculated for the signature.- Returns:
- an encoded signature.
- Throws:
IOException- in case of an exception processing the hash.
-
getStreamSigner
- Throws:
IOException
-