use of org.wso2.carbon.apimgt.common.gateway.jwttransformer.DefaultJWTTransformer in project carbon-apimgt by wso2.
the class JWTValidatorImpl method loadTokenIssuerConfiguration.
@Override
public void loadTokenIssuerConfiguration(TokenIssuerDto tokenIssuerConfigurations) {
this.tokenIssuer = tokenIssuerConfigurations;
JWTTransformer jwtTransformer = ServiceReferenceHolder.getInstance().getJWTTransformer(tokenIssuer.getIssuer());
if (jwtTransformer != null) {
this.jwtTransformer = jwtTransformer;
} else {
this.jwtTransformer = new DefaultJWTTransformer();
}
this.jwtTransformer.loadConfiguration(tokenIssuer);
}
Aggregations