Class WindowsConfiguration
java.lang.Object
com.google.jenkins.plugins.computeengine.WindowsConfiguration
- All Implemented Interfaces:
Describable<WindowsConfiguration>
,Serializable
public class WindowsConfiguration
extends Object
implements Describable<WindowsConfiguration>, Serializable
Class to contain information needed to configure and access Windows agents This avoids passing in
several parameters between multiple classes and also isolates logic in accessing credentials
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static final class
-
Constructor Summary
ConstructorDescriptionWindowsConfiguration
(String passwordCredentialsId, String privateKeyCredentialsId) -
Method Summary
Modifier and TypeMethodDescriptionstatic WindowsConfiguration.Builder
builder()
protected boolean
boolean
Gets the password if a username and password credential is providedcom.cloudbees.plugins.credentials.common.StandardUsernameCredentials
Returns the SSH private key if a SSH credential is providedint
hashCode()
void
setPasswordCredentialsId
(String passwordCredentialsId) void
setPrivateKeyCredentialsId
(String privateKeyCredentialsId) toString()
-
Constructor Details
-
WindowsConfiguration
@DataBoundConstructor public WindowsConfiguration() -
WindowsConfiguration
-
-
Method Details
-
getPassword
Gets the password if a username and password credential is provided- Returns:
- password in plain text to use for SSH
-
getPrivateKeyCredentials
public com.cloudbees.plugins.credentials.common.StandardUsernameCredentials getPrivateKeyCredentials()Returns the SSH private key if a SSH credential is provided- Returns:
- SSH private key in plain text to use for SSH
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<WindowsConfiguration>
-
builder
-
getPasswordCredentialsId
-
getPrivateKeyCredentialsId
-
setPasswordCredentialsId
-
setPrivateKeyCredentialsId
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-