Class 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:
    Serialized Form
    • Field Detail


        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:
        OpenID Connect list, JWT list
    • Constructor Detail

      • 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 Detail

      • getIssuer

        public final String getIssuer()
      • setIssuer

        public final void setIssuer​(String issuer)
      • getAudience

        public final String getAudience()
      • setAudience

        public final void setAudience​(String audience)
      • forRun

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

        protected final String token()
      • findIssuer

        protected Issuer findIssuer()