public static class JwtProvider.JwtOutboundTarget
extends java.lang.Object
| Constructor and Description |
|---|
JwtOutboundTarget(TokenHandler outboundHandler,
java.lang.String jwtKid,
java.lang.String jwkKid,
java.lang.String audience,
int notBeforeSeconds,
long validitySeconds)
Create an instance to add to
OutboundTarget. |
| Modifier and Type | Method and Description |
|---|---|
static JwtProvider.JwtOutboundTarget |
fromConfig(Config config,
TokenHandler defaultHandler)
Load an instance from configuration.
|
public JwtOutboundTarget(TokenHandler outboundHandler, java.lang.String jwtKid, java.lang.String jwkKid, java.lang.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 JwtProvider.JwtOutboundTarget fromConfig(Config config, TokenHandler defaultHandler)
config - configuration to load data fromdefaultHandler - default outbound token handlerJwtOutboundTarget(TokenHandler, String, String, String, int, long)Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.