public class WindowsConfiguration extends Object
| Constructor and Description |
|---|
WindowsConfiguration(String windowsUsername,
String passwordCredentialsId,
String privateKeyCredentialsId)
Constructor for WindowsConfig
|
| Modifier and Type | Method and Description |
|---|---|
String |
getPassword()
Gets the password if a username and password credential is provided
|
com.cloudbees.plugins.credentials.common.StandardUsernameCredentials |
getPrivateKeyCredentials()
Returns the SSH private key if a SSH credential is provided
|
Optional<String> |
getPrivateKeyCredentialsId()
Returns the Optional for privateKeyCredentialsId.
|
String |
getWindowsUsername()
Getter for windowsUsername
|
public WindowsConfiguration(String windowsUsername, String passwordCredentialsId, String privateKeyCredentialsId)
windowsUsername - Username of an existing account on the windows agentpasswordCredentialsId - Credentials Id of credential containing password for the account under windowsUsernameprivateKeyCredentialsId - Credentials Id of credential containing private SSH key for account under windowsUsernamepublic String getWindowsUsername()
public Optional<String> getPrivateKeyCredentialsId()
public String getPassword()
public com.cloudbees.plugins.credentials.common.StandardUsernameCredentials getPrivateKeyCredentials()
Copyright © 2016–2018 Google. All rights reserved.