Class P4BaseCredentials
- java.lang.Object
- 
- com.cloudbees.plugins.credentials.BaseCredentials
- 
- com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
- 
- org.jenkinsci.plugins.p4.credentials.P4BaseCredentials
 
 
 
- 
- All Implemented Interfaces:
- com.cloudbees.plugins.credentials.common.IdCredentials,- com.cloudbees.plugins.credentials.common.StandardCredentials,- com.cloudbees.plugins.credentials.common.StandardUsernameCredentials,- com.cloudbees.plugins.credentials.common.UsernameCredentials,- com.cloudbees.plugins.credentials.Credentials,- ExtensionPoint,- Describable<com.cloudbees.plugins.credentials.Credentials>,- Serializable,- P4Credentials
 - Direct Known Subclasses:
- P4PasswordImpl,- P4TicketImpl
 
 public abstract class P4BaseCredentials extends com.cloudbees.plugins.credentials.impl.BaseStandardCredentials implements P4Credentials - See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentialscom.cloudbees.plugins.credentials.impl.BaseStandardCredentials.BaseStandardCredentialsDescriptor
 - 
Nested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudson
 - 
Nested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.IdCredentialscom.cloudbees.plugins.credentials.common.IdCredentials.Helpers
 
- 
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFullP4port()StringgetP4host()StringgetP4JavaUri()StringgetP4port()intgetRetry()longgetSessionLife()TrustImplgetSsl()intgetTick()intgetTimeout()StringgetTrust()StringgetUsername()booleanisSessionEnabled()booleanisSslEnabled()voidsetSessionEnabled(boolean sessionEnabled)voidsetSessionLife(long sessionLife)voidsetTick(String tick)- 
Methods inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentialsequals, getDescription, getId, hashCode
 - 
Methods inherited from class com.cloudbees.plugins.credentials.BaseCredentialsgetDescriptor, getScope
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.cloudbees.plugins.credentials.CredentialsforRun, getDescriptor, getScope
 
- 
 
- 
- 
- 
Constructor Detail- 
P4BaseCredentialspublic P4BaseCredentials(com.cloudbees.plugins.credentials.CredentialsScope scope, String id, String description, @NonNull String p4port, @CheckForNull TrustImpl ssl, @NonNull String username, @CheckForNull String retry, @CheckForNull String timeout, @CheckForNull String p4host)Constructor.- Parameters:
- scope- the scope.
- id- the id.
- description- the description.
- p4port- Perforce port
- ssl- Perforce SSL options
- username- Perforce username
- retry- Perforce connection retry option
- timeout- Perforce connection timeout option
- p4host- Perforce HOST (optional)
 
 
- 
 - 
Method Detail- 
setTick@DataBoundSetter public void setTick(String tick) 
 - 
setSessionEnabled@DataBoundSetter public void setSessionEnabled(boolean sessionEnabled) 
 - 
setSessionLife@DataBoundSetter public void setSessionLife(long sessionLife) 
 - 
getP4portpublic String getP4port() - Specified by:
- getP4portin interface- P4Credentials
- Returns:
- p4port in the form 'hostname:port' Only used for Jelly binding; use getFullP4port()
 
 - 
getFullP4portpublic String getFullP4port() - Returns:
- p4port including 'ssl:' if set JENKINS-62253
 
 - 
getP4JavaUripublic String getP4JavaUri() 
 - 
getSslpublic TrustImpl getSsl() - Specified by:
- getSslin interface- P4Credentials
- Returns:
- SSL object if enabled
 
 - 
isSslEnabledpublic boolean isSslEnabled() - Specified by:
- isSslEnabledin interface- P4Credentials
- Returns:
- true if SSL is selected Do not use isSsl() JENKINS-58249
 
 - 
getTrust@CheckForNull public String getTrust() - Specified by:
- getTrustin interface- P4Credentials
- Returns:
- The P4 trust fingerprint
 
 - 
getUsernamepublic String getUsername() - Specified by:
- getUsernamein interface- com.cloudbees.plugins.credentials.common.UsernameCredentials
 
 - 
getRetrypublic int getRetry() 
 - 
getTimeoutpublic int getTimeout() 
 - 
getP4hostpublic String getP4host() 
 - 
getTickpublic int getTick() 
 - 
isSessionEnabledpublic boolean isSessionEnabled() 
 - 
getSessionLifepublic long getSessionLife() 
 
- 
 
-