| Modifier and Type | Class and Description |
|---|---|
static class |
JwtIssuerSpire.Builder
Constructs a new
JwtIssuerSpire instance. |
| Constructor and Description |
|---|
JwtIssuerSpire(String name,
Set<String> audience) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
audience()
The recipient(s) for this token.
|
static JwtIssuerSpire.Builder |
builder() |
void |
configureJwtSource(String spireAgentSocketEndpoint)
Set SPIRE agent endpoint where trust bundle
JwtBundle can be fetched. |
ConstrainedVerificationKeyResolver |
keyResolver(Collection<Constraint> constraints,
SecurityContext context)
Returns Signature Verification Key identified by
HeaderParameterNames.KEY_ID |
String |
name()
JsonWebSignature Issuer name. |
String |
spireAgentSocketEndpoint()
SPIRE endpoint hosting the SPIRE Agent.
|
createConsumerpublic void configureJwtSource(String spireAgentSocketEndpoint)
JwtBundle can be fetched.
Initializes JwtSourcepublic String name()
JsonWebSignature Issuer name.
This should be the URL of the Authorization Server though there may be some cases where its not.
RFC7519public Set<String> audience()
public String spireAgentSocketEndpoint()
public ConstrainedVerificationKeyResolver keyResolver(Collection<Constraint> constraints, SecurityContext context)
HeaderParameterNames.KEY_IDkeyResolver in class JwtIssuerconstraints - Collection of Constraint to be enforced.ConstrainedVerificationKeyResolverpublic static JwtIssuerSpire.Builder builder()