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() |
createConsumer
public void configureJwtSource(String spireAgentSocketEndpoint)
JwtBundle
can be fetched.
Initializes JwtSource
public String name()
JwtIssuer
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()
JwtIssuer
public String spireAgentSocketEndpoint()
public ConstrainedVerificationKeyResolver keyResolver(Collection<Constraint> constraints, SecurityContext context)
JwtIssuer
ConstrainedVerificationKeyResolver
bound to this issuer.keyResolver
in class JwtIssuer
ConstrainedVerificationKeyResolver
instance.public static MockJwtIssuerSpire.Builder builder()