use of org.wso2.carbon.apimgt.gateway.jwt.RevokedJWTTokensRetriever in project carbon-apimgt by wso2.
the class GatewayStartupListener method retrieveBlockConditionsAndKeyTemplates.
private void retrieveBlockConditionsAndKeyTemplates() {
if (throttleProperties.getBlockCondition().isEnabled()) {
BlockingConditionRetriever webServiceThrottleDataRetriever = new BlockingConditionRetriever();
webServiceThrottleDataRetriever.startWebServiceThrottleDataRetriever();
KeyTemplateRetriever webServiceBlockConditionsRetriever = new KeyTemplateRetriever();
webServiceBlockConditionsRetriever.startKeyTemplateDataRetriever();
// Start web service based revoked JWT tokens retriever.
// Advanced throttle properties & blocking conditions have to be enabled for JWT token
// retrieval due to the throttle config dependency for this feature.
RevokedJWTTokensRetriever webServiceRevokedJWTTokensRetriever = new RevokedJWTTokensRetriever();
webServiceRevokedJWTTokensRetriever.startRevokedJWTTokensRetriever();
}
}
Aggregations