Package org.bouncycastle.tls
Interface TlsCredentialedSigner
-
- All Superinterfaces:
TlsCredentials
- All Known Implementing Classes:
BcDefaultTlsCredentialedSigner
,DefaultTlsCredentialedSigner
,JcaDefaultTlsCredentialedSigner
public interface TlsCredentialedSigner extends TlsCredentials
Support interface for generating a signature based on our private credentials.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
generateRawSignature(byte[] hash)
Generate a signature against the passed in hash.SignatureAndHashAlgorithm
getSignatureAndHashAlgorithm()
Return the algorithm IDs for the signature algorithm and the associated hash it uses.TlsStreamSigner
getStreamSigner()
-
Methods inherited from interface org.bouncycastle.tls.TlsCredentials
getCertificate
-
-
-
-
Method Detail
-
generateRawSignature
byte[] generateRawSignature(byte[] hash) throws java.io.IOException
Generate a signature against the passed in hash.- Parameters:
hash
- a message digest calculated across the message the signature is to apply to.- Returns:
- an encoded signature.
- Throws:
java.io.IOException
- if the hash cannot be processed, or there is an issue with the private credentials.
-
getSignatureAndHashAlgorithm
SignatureAndHashAlgorithm getSignatureAndHashAlgorithm()
Return the algorithm IDs for the signature algorithm and the associated hash it uses.- Returns:
- the full algorithm details for the signature.
-
getStreamSigner
TlsStreamSigner getStreamSigner() throws java.io.IOException
- Throws:
java.io.IOException
-
-