public class MockJwtIssuerSpire extends JwtIssuer
JwtIssuer which uses MockJwtSource.| Modifier and Type | Class and Description |
|---|---|
static class |
MockJwtIssuerSpire.Builder |
| Constructor and Description |
|---|
MockJwtIssuerSpire(String name,
Set<String> audience) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
audience()
The recipient(s) for this token.
|
static MockJwtIssuerSpire.Builder |
builder() |
void |
configureJwtSource(String spireAgentSocketEndpoint)
Set SPIRE agent endpoint where trust bundle
JwtBundle can be fetched. |
ConstrainedVerificationKeyResolver |
keyResolver(Collection<Constraint> constraints,
SecurityContext context)
Creates a new
ConstrainedVerificationKeyResolver bound to this issuer. |
String |
name()
JsonWebSignature Issuer name. |
String |
spireAgentSocketEndpoint() |
createConsumerpublic void configureJwtSource(String spireAgentSocketEndpoint)
JwtBundle can be fetched.
Initializes JwtSourcepublic String name()
JwtIssuerJsonWebSignature Issuer name.
This should be the URL of the Authorization Server though there may be some cases where its not.
RFC7519public Set<String> audience()
JwtIssuerpublic String spireAgentSocketEndpoint()
public ConstrainedVerificationKeyResolver keyResolver(Collection<Constraint> constraints, SecurityContext context)
JwtIssuerConstrainedVerificationKeyResolver bound to this issuer.keyResolver in class JwtIssuerConstrainedVerificationKeyResolver instance.public static MockJwtIssuerSpire.Builder builder()