public class LlapExtClientJwtHelper extends Object
JwtSecretProvider to obtain encryption and decryption secret.| Modifier and Type | Field and Description |
|---|---|
static String |
LLAP_EXT_CLIENT_APP_ID |
static String |
LLAP_JWT_SUBJECT |
| Constructor and Description |
|---|
LlapExtClientJwtHelper(org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
String |
buildJwtForLlap(org.apache.hadoop.yarn.api.records.ApplicationId extClientAppId) |
io.jsonwebtoken.Jws<io.jsonwebtoken.Claims> |
parseClaims(String jwt) |
public static final String LLAP_JWT_SUBJECT
public static final String LLAP_EXT_CLIENT_APP_ID
public LlapExtClientJwtHelper(org.apache.hadoop.conf.Configuration conf)
public String buildJwtForLlap(org.apache.hadoop.yarn.api.records.ApplicationId extClientAppId)
extClientAppId - application Id - application Id injected by get_splitsJwtSecretProvider.getEncryptionSecret().
As of now this JWT contains extClientAppId in claims.public io.jsonwebtoken.Jws<io.jsonwebtoken.Claims> parseClaims(String jwt)
jwt - signed JWT StringJwtSecretProvider.getDecryptionSecret()Copyright © 2024 The Apache Software Foundation. All rights reserved.