Class InlineSignExternal

java.lang.Object
sop.external.operation.InlineSignExternal
All Implemented Interfaces:
sop.operation.AbstractSign<sop.operation.InlineSign>, sop.operation.InlineSign

public class InlineSignExternal extends Object implements sop.operation.InlineSign
Implementation of the InlineSign operation using an external SOP binary.
  • Constructor Details

    • InlineSignExternal

      public InlineSignExternal(String binary, Properties environment)
  • Method Details

    • noArmor

      public sop.operation.InlineSign noArmor()
      Specified by:
      noArmor in interface sop.operation.AbstractSign<sop.operation.InlineSign>
    • key

      public sop.operation.InlineSign key(InputStream key) throws sop.exception.SOPGPException.KeyCannotSign, sop.exception.SOPGPException.BadData, sop.exception.SOPGPException.UnsupportedAsymmetricAlgo, IOException
      Specified by:
      key in interface sop.operation.AbstractSign<sop.operation.InlineSign>
      Throws:
      sop.exception.SOPGPException.KeyCannotSign
      sop.exception.SOPGPException.BadData
      sop.exception.SOPGPException.UnsupportedAsymmetricAlgo
      IOException
    • withKeyPassword

      public sop.operation.InlineSign withKeyPassword(byte[] password) throws sop.exception.SOPGPException.UnsupportedOption, sop.exception.SOPGPException.PasswordNotHumanReadable
      Specified by:
      withKeyPassword in interface sop.operation.AbstractSign<sop.operation.InlineSign>
      Throws:
      sop.exception.SOPGPException.UnsupportedOption
      sop.exception.SOPGPException.PasswordNotHumanReadable
    • mode

      public sop.operation.InlineSign mode(sop.enums.InlineSignAs mode) throws sop.exception.SOPGPException.UnsupportedOption
      Specified by:
      mode in interface sop.operation.InlineSign
      Throws:
      sop.exception.SOPGPException.UnsupportedOption
    • data

      public sop.Ready data(InputStream data) throws sop.exception.SOPGPException.KeyIsProtected, sop.exception.SOPGPException.ExpectedText
      Specified by:
      data in interface sop.operation.InlineSign
      Throws:
      sop.exception.SOPGPException.KeyIsProtected
      sop.exception.SOPGPException.ExpectedText