Top Description Methods
org.bouncycastle.crypto

public Interface SignerWithRecovery

extends Signer
Known Direct Implementers
org.bouncycastle.crypto.signers.ISO9796d2PSSSigner, org.bouncycastle.crypto.signers.ISO9796d2Signer

Signer with message recovery.

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

full/partial message, null if nothing.
getRecoveredMessage
()

Returns a reference to what message was recovered (if any).

public boolean

Returns:

true if full message recovered.
hasFullMessage
()

Returns true if the signer has recovered the full message as part of signature verification.

public void
updateWithRecoveredMessage(byte[]
the signature that we are in the process of verifying.
signature
)

Perform an update with the recovered message before adding any other data.

Inherited from org.bouncycastle.crypto.Signer:
generateSignatureinitresetupdateupdateverifySignature

Method Detail

getRecoveredMessageback to summary
public byte[] getRecoveredMessage()

Returns a reference to what message was recovered (if any).

Returns:byte[]

full/partial message, null if nothing.

hasFullMessageback to summary
public boolean hasFullMessage()

Returns true if the signer has recovered the full message as part of signature verification.

Returns:boolean

true if full message recovered.

updateWithRecoveredMessageback to summary
public void updateWithRecoveredMessage(byte[] signature) throws InvalidCipherTextException

Perform an update with the recovered message before adding any other data. This must be the first update method called, and calling it will result in the signer assuming that further calls to update will include message content past what is recoverable.

Parameters
signature:byte[]

the signature that we are in the process of verifying.