Package kalix.javasdk.annotations
Annotation Interface JWT
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static @interface
A static claim is a claim that is required to be present on the token, and have a particular value. -
Optional Element Summary
Modifier and TypeOptional ElementDescriptionString[]
If set, then the token extracted from the bearer token must have this issuer.If set, the static claims provided and their values will be required when calling the service.
-
Element Details
-
validate
JWT.JwtMethodMode[] validate- Default:
{UNSPECIFIED}
-
bearerTokenIssuer
String[] bearerTokenIssuerIf set, then the token extracted from the bearer token must have this issuer. This can be used in combination with the issuer field of configuration for JWT secrets, if there is at least one secret that has this issuer set, then only those secrets with that issuer set will be used for validating or signing this token, so you can be sure that the token did come from a particular issuer.`- Default:
{}
-
staticClaims
JWT.StaticClaim[] staticClaimsIf set, the static claims provided and their values will be required when calling the service. When multiple claims are provided, all of them will be required to successfully call the service.- Default:
{}
-