Interface JwtSvidSource
- All Known Subinterfaces:
JwtSource
- All Known Implementing Classes:
CachedJwtSource,DefaultJwtSource
public interface JwtSvidSource
Represents a source of SPIFFE JWT-SVIDs.
-
Method Summary
Modifier and TypeMethodDescriptionfetchJwtSvid(SpiffeId subject, String audience, String... extraAudiences) Fetches a JWT-SVID from the source with the given subject and audiences.fetchJwtSvid(String audience, String... extraAudiences) Fetches a JWT-SVID from the source with the given audiences.fetchJwtSvids(@NonNull SpiffeId subject, @NonNull String audience, String... extraAudience) Fetches all SPIFFE JWT-SVIDs on one-shot blocking call.fetchJwtSvids(@NonNull String audience, String... extraAudience) Fetches all SPIFFE JWT-SVIDs on one-shot blocking call.
-
Method Details
-
fetchJwtSvid
Fetches a JWT-SVID from the source with the given audiences.- Parameters:
audience- the audienceextraAudiences- a list of extra audiences as an array of String- Returns:
- a
JwtSvid - Throws:
JwtSvidException- when there is an error fetching the JWT SVID
-
fetchJwtSvid
JwtSvid fetchJwtSvid(SpiffeId subject, String audience, String... extraAudiences) throws JwtSvidException Fetches a JWT-SVID from the source with the given subject and audiences.- Parameters:
subject- aSpiffeIdaudience- the audienceextraAudiences- a list of extra audiences as an array of String- Returns:
- a
JwtSvid - Throws:
JwtSvidException- when there is an error fetching the JWT SVID
-
fetchJwtSvids
List<JwtSvid> fetchJwtSvids(@NonNull @NonNull String audience, String... extraAudience) throws JwtSvidException Fetches all SPIFFE JWT-SVIDs on one-shot blocking call.- Parameters:
audience- the audience of the JWT-SVIDextraAudience- the extra audience for the JWT_SVID- Returns:
- all of
JwtSvidobject - Throws:
JwtSvidException- if there is an error fetching or processing the JWT from the Workload API
-
fetchJwtSvids
List<JwtSvid> fetchJwtSvids(@NonNull @NonNull SpiffeId subject, @NonNull @NonNull String audience, String... extraAudience) throws JwtSvidException Fetches all SPIFFE JWT-SVIDs on one-shot blocking call.- Parameters:
subject- a SPIFFE IDaudience- the audience of the JWT-SVIDextraAudience- the extra audience for the JWT_SVID- Returns:
- all of
JwtSvidobject - Throws:
JwtSvidException- if there is an error fetching or processing the JWT from the Workload API
-