Class GenerateKeyExternal

  • All Implemented Interfaces:
    sop.operation.GenerateKey

    public class GenerateKeyExternal
    extends java.lang.Object
    implements sop.operation.GenerateKey
    Implementation of the GenerateKey operation using an external SOP binary.
    • Constructor Summary

      Constructors 
      Constructor Description
      GenerateKeyExternal​(java.lang.String binary, java.util.Properties environment)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      sop.Ready generate()  
      sop.operation.GenerateKey noArmor()  
      sop.operation.GenerateKey profile​(java.lang.String profile)  
      sop.operation.GenerateKey userId​(java.lang.String userId)  
      sop.operation.GenerateKey withKeyPassword​(java.lang.String password)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface sop.operation.GenerateKey

        profile, withKeyPassword
    • Constructor Detail

      • GenerateKeyExternal

        public GenerateKeyExternal​(java.lang.String binary,
                                   java.util.Properties environment)
    • Method Detail

      • noArmor

        public sop.operation.GenerateKey noArmor()
        Specified by:
        noArmor in interface sop.operation.GenerateKey
      • userId

        public sop.operation.GenerateKey userId​(java.lang.String userId)
        Specified by:
        userId in interface sop.operation.GenerateKey
      • withKeyPassword

        public sop.operation.GenerateKey withKeyPassword​(java.lang.String password)
                                                  throws sop.exception.SOPGPException.PasswordNotHumanReadable,
                                                         sop.exception.SOPGPException.UnsupportedOption
        Specified by:
        withKeyPassword in interface sop.operation.GenerateKey
        Throws:
        sop.exception.SOPGPException.PasswordNotHumanReadable
        sop.exception.SOPGPException.UnsupportedOption
      • profile

        public sop.operation.GenerateKey profile​(java.lang.String profile)
        Specified by:
        profile in interface sop.operation.GenerateKey
      • generate

        public sop.Ready generate()
                           throws sop.exception.SOPGPException.MissingArg,
                                  sop.exception.SOPGPException.UnsupportedAsymmetricAlgo
        Specified by:
        generate in interface sop.operation.GenerateKey
        Throws:
        sop.exception.SOPGPException.MissingArg
        sop.exception.SOPGPException.UnsupportedAsymmetricAlgo