Package dev.sigstore.oidc.client
Class OidcClients
- java.lang.Object
-
- dev.sigstore.oidc.client.OidcClients
-
public class OidcClients extends java.lang.ObjectAn ordered list of oidc clients to use when looking for credentials.
-
-
Field Summary
Fields Modifier and Type Field Description static OidcClientsPUBLIC_GOODstatic OidcClientsSTAGING
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OidcTokengetIDToken()Attempts to obtain a token from the first enabled oidc provider and errors if a failure occurs, does not try other providers if the first provider fails.static OidcClientsof(OidcClient... clients)
-
-
-
Field Detail
-
PUBLIC_GOOD
public static final OidcClients PUBLIC_GOOD
-
STAGING
public static final OidcClients STAGING
-
-
Method Detail
-
of
public static OidcClients of(OidcClient... clients)
-
getIDToken
public OidcToken getIDToken() throws OidcException
Attempts to obtain a token from the first enabled oidc provider and errors if a failure occurs, does not try other providers if the first provider fails.- Returns:
- an oidc token
- Throws:
OidcException- if token request fails or if no valid provider was found
-
-