public class StandardBearerTokenProvider extends Object implements BearerTokenProvider
| Modifier and Type | Field and Description |
|---|---|
private JwsSignerProvider |
jwsSignerProvider |
private static org.slf4j.Logger |
LOGGER |
private static Duration |
MAXIMUM_EXPIRATION |
private static Duration |
MINIMUM_EXPIRATION |
private static String |
URL_ENCODED_CHARACTER_SET |
| Constructor and Description |
|---|
StandardBearerTokenProvider(JwsSignerProvider jwsSignerProvider) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBearerToken(LoginAuthenticationToken loginAuthenticationToken)
Get Signed JSON Web Token using Login Authentication Token
|
private Date |
getExpirationTime(LoginAuthenticationToken loginAuthenticationToken) |
private String |
getSignedBearerToken(com.nimbusds.jwt.JWTClaimsSet claims) |
private String |
getUrlEncoded(String string) |
private static final org.slf4j.Logger LOGGER
private static final String URL_ENCODED_CHARACTER_SET
private static final Duration MAXIMUM_EXPIRATION
private static final Duration MINIMUM_EXPIRATION
private final JwsSignerProvider jwsSignerProvider
public StandardBearerTokenProvider(JwsSignerProvider jwsSignerProvider)
public String getBearerToken(LoginAuthenticationToken loginAuthenticationToken)
getBearerToken in interface BearerTokenProviderloginAuthenticationToken - Login Authentication Tokenprivate Date getExpirationTime(LoginAuthenticationToken loginAuthenticationToken)
private String getSignedBearerToken(com.nimbusds.jwt.JWTClaimsSet claims)
Copyright © 2023 Apache NiFi Project. All rights reserved.