Java源码示例:org.wso2.carbon.identity.application.common.cache.BaseCache

示例1
public void init() throws IdentityOAuth2Exception {

        super.init();

        IdentityConfigParser configParser;
        configParser = IdentityConfigParser.getInstance();
        OMElement oauthElem = configParser.getConfigElement(CONFIG_ELEM_OAUTH);

        // Get the required claim uris that needs to be included in the response.
        parseRequiredHeaderClaimUris(oauthElem.getFirstChildWithName(getQNameWithIdentityNS(REQUIRED_CLAIM_URIS)));

        // read login config
        parseLoginConfig(oauthElem);

        userClaimsCache = new BaseCache<String, Claim[]>("UserClaimsCache");
        if (log.isDebugEnabled()) {
            log.debug("Successfully created UserClaimsCache under " + OAuthConstants.OAUTH_CACHE_MANAGER);
        }
    }