Class NovaKeypair

    • Constructor Detail

      • NovaKeypair

        public NovaKeypair()
    • Method Detail

      • create

        public static NovaKeypair create​(String name,
                                         String publicKey)
        Used internally by the domain side of the API to create a new Keypair on an OpenStack server
        Parameters:
        name - the name of the keypair
        publicKey - the public key or null to have OS generated one
        Returns:
        NovaKeypair
      • getName

        public String getName()
        The name associated with the keypair
        Specified by:
        getName in interface Keypair
        Returns:
        the name of the keypair
      • getPublicKey

        public String getPublicKey()
        The public SSH key
        Specified by:
        getPublicKey in interface Keypair
        Returns:
        the public key
      • getPrivateKey

        public String getPrivateKey()
        The private key associated with this keypair. Only populated on create when a public key is not specified and is auto-generated by the server
        Specified by:
        getPrivateKey in interface Keypair
        Returns:
        the private key
      • getUserId

        public String getUserId()
        Specified by:
        getUserId in interface Keypair
        Returns:
        the user_id for a keypair.
      • getId

        public Integer getId()
        Specified by:
        getId in interface Keypair
        Returns:
        id of the keypair