Package io.jenkins.plugins.oidc_provider
Class Issuer
java.lang.Object
io.jenkins.plugins.oidc_provider.Issuer
- Direct Known Subclasses:
FolderIssuer
,RootIssuer
Representation of an issuer of tokens.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
Check permision on thecontext()
to enumerate credentials and get their metadata.protected abstract ModelObject
context()
The associated object in Jenkins.final Collection<? extends IdTokenCredentials>
Load credentials from this issuer.toString()
protected abstract String
uri()
URI suffix afterhttps://jenkins/oidc
.final String
url()
Absolute URL of issuer.
-
Constructor Details
-
Issuer
public Issuer()
-
-
Method Details
-
context
The associated object in Jenkins. -
credentials
Load credentials from this issuer. Only credentials defined here will be returned—no inherited credentials, unlikeCredentialsProvider.lookupStores(hudson.model.ModelObject)
orCredentialsProvider.lookupCredentials(Class, ItemGroup, org.acegisecurity.Authentication, List)
.- Returns:
- a possibly empty set of credentials
-
uri
URI suffix afterhttps://jenkins/oidc
. Should matchItem.getUrl()
or similar methods when applied tocontext()
, except with an initial rather than a trailing slash (/
).- Returns:
- the empty string, or e.g.
/path/subpath
- See Also:
-
url
Absolute URL of issuer.- Returns:
- e.g.
https://jenkins/oidc/path/subpath
-
checkExtendedReadPermission
protected abstract void checkExtendedReadPermission() throws org.springframework.security.access.AccessDeniedExceptionCheck permision on thecontext()
to enumerate credentials and get their metadata.- Throws:
org.springframework.security.access.AccessDeniedException
-
toString
-