Package akka.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 one of these issuers.If set, the static claims provided and their values will be required when calling the service.
-
Element Details
-
validate
JWT.JwtMethodMode[] validate- Default:
{UNSPECIFIED}
-
bearerTokenIssuers
String[] bearerTokenIssuersIf set, then the token extracted from the bearer token must have one of these issuers.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 the secrets with that issuer set will be used for validation. This ensures that the token comes 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:
{}
-