Interface ServerSshKeyManager

    • Field Detail

      • TEAMCITY_SSH_KEY_PROP

        static final java.lang.String TEAMCITY_SSH_KEY_PROP
        See Also:
        Constant Field Values
    • Method Detail

      • removeKey

        void removeKey​(@NotNull
                       SProject p,
                       @NotNull
                       java.lang.String keyName,
                       @NotNull
                       ConfigAction configAction)
      • generatePrivateKey

        @NotNull
        byte[] generatePrivateKey​(@NotNull
                                  java.lang.String keyType)
        Generates a private key of the specified type.
        Parameters:
        keyType - key type (one of 'ED25519', 'RSA').
        Returns:
        priveate key
        Since:
        2023.05
      • getPublicKey

        @NotNull
        java.lang.String getPublicKey​(@NotNull
                                      TeamCitySshKey key)
        Retrieves public key of TeamCitySshKey if it is not encrypted.
        Parameters:
        key - TeamCity ssh key.
        Returns:
        a string with key-type and base64-encoded public key.
        Since:
        2023.05