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 TlsSignerBase interface for a TLS signer that works on raw message digests.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]generateRawSignature(SignatureAndHashAlgorithm algorithm, byte[] hash)Generate an encoded signature based on the passed in hash.TlsStreamSignergetStreamSigner(SignatureAndHashAlgorithm algorithm)
-
-
-
Method Detail
-
generateRawSignature
byte[] generateRawSignature(SignatureAndHashAlgorithm algorithm, byte[] hash) throws java.io.IOException
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:
java.io.IOException- in case of an exception processing the hash.
-
getStreamSigner
TlsStreamSigner getStreamSigner(SignatureAndHashAlgorithm algorithm) throws java.io.IOException
- Throws:
java.io.IOException
-
-