/** * Private constructor, makes the class singleton * * @throws Exception TODO: Define a custom exception */ private OpenIDClaimMapper() throws Exception { process(CarbonUtils.getCarbonConfigDirPath() + OPENID_CLAIM_MAPPER_FILE_PATH); }
/** * Private constructor, makes the class singleton * * @throws Exception TODO: Define a custom exception */ private OpenIDClaimMapper() throws Exception { process(CarbonUtils.getCarbonConfigDirPath() + OPENID_CLAIM_MAPPER_FILE_PATH); }
/** * Private constructor, makes the class singleton * * @throws Exception TODO: Define a custom exception */ private OpenIDClaimMapper() throws Exception { process(CarbonUtils.getCarbonConfigDirPath() + OPENID_CLAIM_MAPPER_FILE_PATH); }
/** * Process the OpenID mapping file * * @param filePath Path to the OpenID attribute mapping file * @throws Exception */ private void process(String filePath) throws Exception { StAXOMBuilder builder = new StAXOMBuilder(filePath); OMElement elem = builder.getDocumentElement(); process(elem); }
/** * Process the OpenID mapping file * * @param filePath Path to the OpenID attribute mapping file * @throws Exception */ private void process(String filePath) throws Exception { StAXOMBuilder builder = new StAXOMBuilder(filePath); OMElement elem = builder.getDocumentElement(); process(elem); }
/** * Process the OpenID mapping file * * @param filePath Path to the OpenID attribute mapping file * @throws Exception */ private void process(String filePath) throws Exception { StAXOMBuilder builder = new StAXOMBuilder(filePath); OMElement elem = builder.getDocumentElement(); process(elem); }