Class OriginAppCredentials
java.lang.Object
com.cloudbees.plugins.credentials.BaseCredentials
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
io.jenkins.plugins.cursor_origin_branch_source.OriginAppCredentials
- All Implemented Interfaces:
com.cloudbees.plugins.credentials.common.IdCredentials,com.cloudbees.plugins.credentials.common.PasswordCredentials,com.cloudbees.plugins.credentials.common.StandardCredentials,com.cloudbees.plugins.credentials.common.StandardUsernameCredentials,com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials,com.cloudbees.plugins.credentials.common.UsernameCredentials,com.cloudbees.plugins.credentials.common.UsernamePasswordCredentials,com.cloudbees.plugins.credentials.Credentials,ExtensionPoint,Describable<com.cloudbees.plugins.credentials.Credentials>,Serializable
public class OriginAppCredentials
extends com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
implements com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic final classstatic classPreventsUsernamePasswordCredentialsSnapshotTakerfrom freezing the ephemeral installation token into a static credential, which would break subsequent token refreshes.static final recordstatic final classNested 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.StandardUsernamePasswordCredentials
com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials.NameProvider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapi()Creates an API client authenticated as this app installation.getAppId()booleanvoidsetUnrestricted(boolean unrestricted) Methods 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
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
-
OriginAppCredentials
-
-
Method Details
-
getAppId
-
getInstallationId
-
getPrivateKey
-
setUnrestricted
@DataBoundSetter public void setUnrestricted(boolean unrestricted) -
isUnrestricted
public boolean isUnrestricted() -
getUsername
- Specified by:
getUsernamein interfacecom.cloudbees.plugins.credentials.common.UsernameCredentials
-
getPassword
- Specified by:
getPasswordin interfacecom.cloudbees.plugins.credentials.common.PasswordCredentials
-
forRun
- Specified by:
forRunin interfacecom.cloudbees.plugins.credentials.Credentials
-
api
Creates an API client authenticated as this app installation.Each call mints a fresh installation access token, so callers should reuse the returned client for the duration of a logical operation rather than calling this per request.
-