@Requires(property="micronaut.security.endpoints.keys.enabled",notEquals="false",defaultValue="true") @Requires(beans=JwkProvider.class) @Controller(value="${micronaut.security.endpoints.keys.path:/keys}") @Secured(value="isAnonymous()") public class KeysController extends java.lang.Object
JwkProvider
beans.Constructor and Description |
---|
KeysController(java.util.Collection<JwkProvider> jwkProviders,
io.micronaut.json.JsonMapper jsonMapper)
Instantiates a
KeysController . |
KeysController(java.util.Collection<JwkProvider> jwkProviders,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Deprecated.
Use
KeysController(Collection, JsonMapper) instead |
Modifier and Type | Method and Description |
---|---|
org.reactivestreams.Publisher<java.lang.String> |
keys() |
@Deprecated public KeysController(java.util.Collection<JwkProvider> jwkProviders, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
KeysController(Collection, JsonMapper)
insteadKeysController
.jwkProviders
- a collection of JSON Web Key providers.objectMapper
- Jackson ObjectMapper used to do serialization.@Inject public KeysController(java.util.Collection<JwkProvider> jwkProviders, io.micronaut.json.JsonMapper jsonMapper)
KeysController
.jwkProviders
- a collection of JSON Web Key providers.jsonMapper
- Jackson ObjectMapper used to do serialization.