Search in sources :

Example 1 with RevokedJWTTokensRetriever

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();
    }
}
Also used : RevokedJWTTokensRetriever(org.wso2.carbon.apimgt.gateway.jwt.RevokedJWTTokensRetriever) BlockingConditionRetriever(org.wso2.carbon.apimgt.gateway.throttling.util.BlockingConditionRetriever) KeyTemplateRetriever(org.wso2.carbon.apimgt.gateway.throttling.util.KeyTemplateRetriever)

Aggregations

RevokedJWTTokensRetriever (org.wso2.carbon.apimgt.gateway.jwt.RevokedJWTTokensRetriever)1 BlockingConditionRetriever (org.wso2.carbon.apimgt.gateway.throttling.util.BlockingConditionRetriever)1 KeyTemplateRetriever (org.wso2.carbon.apimgt.gateway.throttling.util.KeyTemplateRetriever)1