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:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials.BaseStandardCredentialsDescriptorNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials
com.cloudbees.plugins.credentials.common.IdCredentials.HelpersNested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.StandardCredentials
com.cloudbees.plugins.credentials.common.StandardCredentials.NameProviderNested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.StandardUsernameCredentials
com.cloudbees.plugins.credentials.common.StandardUsernameCredentials.NameProvider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetRetry()longgetSsl()intgetTick()intgetTrust()booleanbooleanvoidsetSessionEnabled(boolean sessionEnabled) voidsetSessionLife(long sessionLife) voidMethods inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
equals, getDescription, getId, hashCodeMethods inherited from class com.cloudbees.plugins.credentials.BaseCredentials
getDescriptor, getScopeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cloudbees.plugins.credentials.Credentials
forRun, getDescriptor, getScopeMethods inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials
getIdMethods inherited from interface com.cloudbees.plugins.credentials.common.StandardCredentials
getDescriptionMethods inherited from interface com.cloudbees.plugins.credentials.common.UsernameCredentials
isUsernameSecret
-
Constructor Details
-
P4BaseCredentials
public 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 portssl- Perforce SSL optionsusername- Perforce usernameretry- Perforce connection retry optiontimeout- Perforce connection timeout optionp4host- Perforce HOST (optional)
-
-
Method Details
-
setTick
-
setSessionEnabled
@DataBoundSetter public void setSessionEnabled(boolean sessionEnabled) -
setSessionLife
@DataBoundSetter public void setSessionLife(long sessionLife) -
getP4port
- Specified by:
getP4portin interfaceP4Credentials- Returns:
- p4port in the form 'hostname:port' Only used for Jelly binding; use getFullP4port()
-
getFullP4port
- Returns:
- p4port including 'ssl:' if set JENKINS-62253
-
getP4JavaUri
-
getSsl
- Specified by:
getSslin interfaceP4Credentials- Returns:
- SSL object if enabled
-
isSslEnabled
public boolean isSslEnabled()- Specified by:
isSslEnabledin interfaceP4Credentials- Returns:
- true if SSL is selected Do not use isSsl() JENKINS-58249
-
getTrust
- Specified by:
getTrustin interfaceP4Credentials- Returns:
- The P4 trust fingerprint
-
getUsername
- Specified by:
getUsernamein interfacecom.cloudbees.plugins.credentials.common.UsernameCredentials
-
getRetry
public int getRetry() -
getTimeout
public int getTimeout() -
getP4host
-
getTick
public int getTick() -
isSessionEnabled
public boolean isSessionEnabled() -
getSessionLife
public long getSessionLife()
-