Interface SshKeys

All Superinterfaces:
Serializable

public interface SshKeys extends Serializable
Defines SSH access to a remote repository.
  • Method Summary

    Modifier and Type
    Method
    Description
    The name of the publication this is attached to.
    org.gradle.api.provider.Provider<String>
    The passphrase for the private key.
    org.gradle.api.provider.Provider<byte[]>
    The private key for accessing the remote repository.
    org.gradle.api.provider.Provider<Map<String,List<String>>>
    A map of the unresolved server host keys that will be accepted.
    org.gradle.api.provider.Provider<File>
    A directory which SSH can use for temporary work items.
  • Method Details

    • getName

      String getName()
      The name of the publication this is attached to.
      Returns:
      Publication name.
    • getPrivateKey

      org.gradle.api.provider.Provider<byte[]> getPrivateKey()
      The private key for accessing the remote repository.
      Returns:
      Private key. Can be empty if no SSH access was configured.
    • getPassphrase

      org.gradle.api.provider.Provider<String> getPassphrase()
      The passphrase for the private key.
      Returns:
      Passphrase. Can be empty if no passphrase is required.
    • getServerKeys

      org.gradle.api.provider.Provider<Map<String,List<String>>> getServerKeys()
      A map of the unresolved server host keys that will be accepted.
      Returns:
      Map where the key is the host name and the value is a list of PublicKey instances.
    • getWorkingDir

      org.gradle.api.provider.Provider<File> getWorkingDir()
      A directory which SSH can use for temporary work items.
      Returns:
      Directory.