Class KeypairServiceImpl

    • Constructor Detail

      • KeypairServiceImpl

        public KeypairServiceImpl()
    • Method Detail

      • list

        public List<? extends Keypair> list()
        Lists keypairs that are associated with the account making the request
        Specified by:
        list in interface KeypairService
        Returns:
        the list of keypairs
      • get

        public Keypair get​(String name)
        Gets the keypair by name
        Specified by:
        get in interface KeypairService
        Parameters:
        name - the keypair name
        Returns:
        the keypair
      • delete

        public ActionResponse delete​(String name)
        Deletes the keypair by name
        Specified by:
        delete in interface KeypairService
        Parameters:
        name - the keypair name
        Returns:
        the action response
      • create

        public Keypair create​(String name,
                              @Nullable
                              String publicKey)
        Generates or imports a keypair
        Specified by:
        create in interface KeypairService
        Parameters:
        name - the name of the keypair
        publicKey - the public key (optional), Null indicates one will be generated
        Returns:
        the newly created keypair