Class Issuer

java.lang.Object
io.jenkins.plugins.oidc_provider.Issuer
Direct Known Subclasses:
FolderIssuer, RootIssuer

public abstract class Issuer extends Object
Representation of an issuer of tokens.
  • Constructor Details

    • Issuer

      public Issuer()
  • Method Details

    • context

      @NonNull protected abstract ModelObject context()
      The associated object in Jenkins.
    • credentials

      @NonNull public final Collection<? extends IdTokenCredentials> credentials()
      Load credentials from this issuer. Only credentials defined here will be returned—no inherited credentials, unlike CredentialsProvider.lookupStores(hudson.model.ModelObject) or CredentialsProvider.lookupCredentials(Class, ItemGroup, org.acegisecurity.Authentication, List).
      Returns:
      a possibly empty set of credentials
    • uri

      @NonNull protected abstract String uri()
      URI suffix after https://jenkins/oidc. Should match Item.getUrl() or similar methods when applied to context(), except with an initial rather than a trailing slash (/).
      Returns:
      the empty string, or e.g. /path/subpath
      See Also:
    • url

      public final String url()
      Absolute URL of issuer.
      Returns:
      e.g. https://jenkins/oidc/path/subpath
    • checkExtendedReadPermission

      protected abstract void checkExtendedReadPermission() throws org.springframework.security.access.AccessDeniedException
      Check permision on the context() to enumerate credentials and get their metadata.
      Throws:
      org.springframework.security.access.AccessDeniedException
    • toString

      public String toString()
      Overrides:
      toString in class Object