Class FileSystemServiceAccountCredential

java.lang.Object
com.cloudbees.plugins.credentials.BaseCredentials
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
org.jenkinsci.plugins.kubernetes.credentials.FileSystemServiceAccountCredential
All Implemented Interfaces:
com.cloudbees.plugins.credentials.common.IdCredentials, com.cloudbees.plugins.credentials.common.StandardCredentials, com.cloudbees.plugins.credentials.Credentials, ExtensionPoint, Describable<com.cloudbees.plugins.credentials.Credentials>, Serializable, TokenProducer, org.jenkinsci.plugins.plaincredentials.StringCredentials

public class FileSystemServiceAccountCredential extends com.cloudbees.plugins.credentials.impl.BaseStandardCredentials implements TokenProducer, org.jenkinsci.plugins.plaincredentials.StringCredentials
Read the OAuth bearer token from service account file provisioned by kubernetes Service Account Admission Controller when Jenkins itself is deployed inside a Pod.
Author:
Nicolas De Loof
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials

    com.cloudbees.plugins.credentials.impl.BaseStandardCredentials.BaseStandardCredentialsDescriptor

    Nested classes/interfaces inherited from interface hudson.ExtensionPoint

    ExtensionPoint.LegacyInstancesAreScopedToHudson

    Nested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials

    com.cloudbees.plugins.credentials.common.IdCredentials.Helpers

    Nested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.StandardCredentials

    com.cloudbees.plugins.credentials.common.StandardCredentials.NameProvider

    Nested classes/interfaces inherited from interface org.jenkinsci.plugins.plaincredentials.StringCredentials

    org.jenkinsci.plugins.plaincredentials.StringCredentials.NameProvider
  • Constructor Summary

    Constructors
    Constructor
    Description
    FileSystemServiceAccountCredential(com.cloudbees.plugins.credentials.CredentialsScope scope, String id, String description)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    getToken(String serviceAddress, String caCertData, boolean skipTlsVerify)
    Deprecated.

    Methods inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials

    equals, getDescription, getId, hashCode

    Methods inherited from class com.cloudbees.plugins.credentials.BaseCredentials

    getDescriptor, getScope

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.cloudbees.plugins.credentials.Credentials

    forRun, getDescriptor, getScope

    Methods inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials

    getId

    Methods inherited from interface com.cloudbees.plugins.credentials.common.StandardCredentials

    getDescription
  • Constructor Details

    • FileSystemServiceAccountCredential

      @DataBoundConstructor public FileSystemServiceAccountCredential(com.cloudbees.plugins.credentials.CredentialsScope scope, String id, String description)
  • Method Details

    • getSecret

      public Secret getSecret()
      Specified by:
      getSecret in interface org.jenkinsci.plugins.plaincredentials.StringCredentials
    • getToken

      @Deprecated public String getToken(String serviceAddress, String caCertData, boolean skipTlsVerify)
      Deprecated.
      Specified by:
      getToken in interface TokenProducer