Class DetachedSignExternal

java.lang.Object
sop.external.operation.DetachedSignExternal
All Implemented Interfaces:
sop.operation.AbstractSign<sop.operation.DetachedSign>, sop.operation.DetachedSign

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

  • Method Details

    • noArmor

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

      public sop.operation.DetachedSign 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.DetachedSign>
      Throws:
      sop.exception.SOPGPException.KeyCannotSign
      sop.exception.SOPGPException.BadData
      sop.exception.SOPGPException.UnsupportedAsymmetricAlgo
      IOException
    • withKeyPassword

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

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

      public sop.ReadyWithResult<sop.SigningResult> data(InputStream data) throws IOException, sop.exception.SOPGPException.KeyIsProtected, sop.exception.SOPGPException.ExpectedText
      Specified by:
      data in interface sop.operation.DetachedSign
      Throws:
      IOException
      sop.exception.SOPGPException.KeyIsProtected
      sop.exception.SOPGPException.ExpectedText