Constructor and Description |
---|
JcaTlsRSASigner(JcaTlsCrypto crypto,
java.security.PrivateKey privateKey,
java.security.PublicKey publicKey) |
Modifier and Type | Method and Description |
---|---|
byte[] |
generateRawSignature(SignatureAndHashAlgorithm algorithm,
byte[] hash)
Generate an encoded signature based on the passed in hash.
|
protected java.security.Signature |
getRawSigner() |
TlsStreamSigner |
getStreamSigner(SignatureAndHashAlgorithm algorithm) |
protected boolean |
isSunMSCAPIRawSigner() |
public JcaTlsRSASigner(JcaTlsCrypto crypto, java.security.PrivateKey privateKey, java.security.PublicKey publicKey)
public byte[] generateRawSignature(SignatureAndHashAlgorithm algorithm, byte[] hash) throws java.io.IOException
TlsSigner
generateRawSignature
in interface TlsSigner
algorithm
- the signature algorithm to use.hash
- the hash calculated for the signature.java.io.IOException
- in case of an exception processing the hash.public TlsStreamSigner getStreamSigner(SignatureAndHashAlgorithm algorithm) throws java.io.IOException
getStreamSigner
in interface TlsSigner
java.io.IOException
protected java.security.Signature getRawSigner() throws java.security.GeneralSecurityException
java.security.GeneralSecurityException
protected boolean isSunMSCAPIRawSigner() throws java.io.IOException
java.io.IOException