/** * Creates and maintains a singleton instance of OpenIDClaimMapper * * @return An instance of OpenIDClaimMapper * @throws Exception */ public static OpenIDClaimMapper getInstance() throws Exception { if (instance == null) { instance = new OpenIDClaimMapper(); } return instance; }
/** * 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); }
/** * Creates and maintains a singleton instance of OpenIDClaimMapper * * @return An instance of OpenIDClaimMapper * @throws Exception */ public static OpenIDClaimMapper getInstance() throws Exception { if (instance == null) { instance = new OpenIDClaimMapper(); } return instance; }
/** * 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); }
/** * Creates and maintains a singleton instance of OpenIDClaimMapper * * @return An instance of OpenIDClaimMapper * @throws Exception */ public static OpenIDClaimMapper getInstance() throws Exception { if (instance == null) { instance = new OpenIDClaimMapper(); } return instance; }
/** * 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); }