Class IdTokenCredentials

java.lang.Object
com.cloudbees.plugins.credentials.BaseCredentials
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
io.jenkins.plugins.oidc_provider.IdTokenCredentials
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
Direct Known Subclasses:
IdTokenFileCredentials, IdTokenStringCredentials

public abstract class IdTokenCredentials extends com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected 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
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Set<String>
    Claims that must not be defined by user claim templates, because they have special meanings.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    IdTokenCredentials(com.cloudbees.plugins.credentials.CredentialsScope scope, String id, String description)
     
    protected
    IdTokenCredentials(com.cloudbees.plugins.credentials.CredentialsScope scope, String id, String description, KeyPair kp, Secret privateKey)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract IdTokenCredentials
    clone(KeyPair kp, Secret privateKey)
     
    protected Issuer
     
    final com.cloudbees.plugins.credentials.Credentials
    forRun(Run<?,?> context)
     
    final String
     
    final String
     
    protected Object
     
    final void
    setAudience(String audience)
     
    final void
    setIssuer(String issuer)
     
    protected final String
     

    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

    getDescriptor, getScope
  • Field Details

    • STANDARD_CLAIMS

      public static final Set<String> STANDARD_CLAIMS
      Claims that must not be defined by user claim templates, because they have special meanings. sub is treated specially: it must be defined by a claim template.
      See Also:
  • Constructor Details

    • IdTokenCredentials

      protected IdTokenCredentials(com.cloudbees.plugins.credentials.CredentialsScope scope, String id, String description)
    • IdTokenCredentials

      protected IdTokenCredentials(com.cloudbees.plugins.credentials.CredentialsScope scope, String id, String description, KeyPair kp, Secret privateKey)
  • Method Details

    • readResolve

      protected Object readResolve() throws Exception
      Throws:
      Exception
    • getIssuer

      public final String getIssuer()
    • setIssuer

      @DataBoundSetter public final void setIssuer(String issuer)
    • getAudience

      public final String getAudience()
    • setAudience

      @DataBoundSetter public final void setAudience(String audience)
    • clone

      protected abstract IdTokenCredentials clone(KeyPair kp, Secret privateKey)
    • forRun

      public final com.cloudbees.plugins.credentials.Credentials forRun(Run<?,?> context)
    • token

      @NonNull protected final String token()
    • findIssuer

      @NonNull protected Issuer findIssuer()