public static class JwtAuthProvider.JwtOutboundTarget extends Object
| Constructor and Description |
|---|
JwtOutboundTarget(TokenHandler outboundHandler,
String jwtKid,
String jwkKid,
String audience,
int notBeforeSeconds,
long validitySeconds)
Create an instance to add to
OutboundTarget. |
| Modifier and Type | Method and Description |
|---|---|
static JwtAuthProvider.JwtOutboundTarget |
fromConfig(Config config,
TokenHandler defaultHandler)
Load an instance from configuration.
|
public JwtOutboundTarget(TokenHandler outboundHandler, String jwtKid, String jwkKid, String audience, int notBeforeSeconds, long validitySeconds)
OutboundTarget.outboundHandler - token handler to inject JWT into outbound headersjwtKid - key id to put into a JWTjwkKid - key id to use to sign using JWK - if not defined, existing token will be propagated if presentaudience - audience to create a JWT fornotBeforeSeconds - seconds before now the token is valid (e.g. now - notBeforeSeconds = JWT not before)validitySeconds - seconds after now the token is valid (e.g. now + validitySeconds = JWT expiration time)public static JwtAuthProvider.JwtOutboundTarget fromConfig(Config config, TokenHandler defaultHandler)
config - configuration to load data fromdefaultHandler - default outbound token handlerJwtOutboundTarget(TokenHandler, String, String, String, int, long)Copyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.