public class NoVerifySignedCommandUnwrapper extends java.lang.Object implements CommandUnwrapper
CommandUnwrapper
DOES NOT verify the signature of the SignedCommand. It simply skips
algId, certPath to reach the command content and closes the stream before reading the signature.Constructor and Description |
---|
NoVerifySignedCommandUnwrapper() |
Modifier and Type | Method and Description |
---|---|
Command |
unwrapCommand(java.io.InputStream wrappedCommandStream,
IProgressMonitor monitor)
Starts decoding a DER encoded stream, i.e.
|
public Command unwrapCommand(java.io.InputStream wrappedCommandStream, IProgressMonitor monitor) throws java.io.IOException, InvalidCommandFormatException
CommandUnwrapper
It creates a Command
from the specified stream. Command contents can be accessed from the
Command.getCommandInputStream()
method. The verification of the stream is triggered ONLY when the stream
has been entirely consumed.
unwrapCommand
in interface CommandUnwrapper
wrappedCommandStream
- DER encoded stream.monitor
- the progress monitor to use for reporting progress to the user. It is the caller's responsibility to
call done() on the given monitor. Accepts null
, indicating that no progress should be
reported and that the operation cannot be cancelled.java.io.IOException
- if an I/O error occurs.InvalidCommandFormatException
- if an error occurs while unwrapping the command.