/** * Read configuration elements from the identity.xml * * @param key Element Name as specified from the parent elements in the XML structure. * To read the element value of b in {@code<a><b>text</b></a>}, the property * name should be passed as "a.b" * @return Element text value, "text" for the above element. */ public static String getProperty(String key) { Object value = configuration.get(key); String strValue; if (value instanceof ArrayList) { strValue = (String) ((ArrayList) value).get(0); } else { strValue = (String) value; } strValue = fillURLPlaceholders(strValue); return strValue; }
/** * Read configuration elements from the identity.xml * * @param key Element Name as specified from the parent elements in the XML structure. * To read the element value of b in {@code<a><b>text</b></a>}, the property * name should be passed as "a.b" * @return Element text value, "text" for the above element. */ public static String getProperty(String key) { Object value = configuration.get(key); String strValue; if (value == null) { return null; } if (value instanceof List) { value = ((List) value).get(0); } if (value instanceof String) { strValue = (String) value; } else { strValue = String.valueOf(value); } strValue = fillURLPlaceholders(strValue); return strValue; }
/** * Read configuration elements from the identity.xml * * @param key Element Name as specified from the parent elements in the XML structure. * To read the element value of b in {@code<a><b>text</b></a>}, the property * name should be passed as "a.b" * @return Element text value, "text" for the above element. */ public static String getProperty(String key) { Object value = configuration.get(key); String strValue; if (value == null) { return null; } if (value instanceof List) { value = ((List) value).get(0); } if (value instanceof String) { strValue = (String) value; } else { strValue = String.valueOf(value); } strValue = fillURLPlaceholders(strValue); return strValue; }
private void readAuthenticationEndpointWaitURL(OMElement documentElement) { OMElement authEndpointWaitURLElem = documentElement.getFirstChildWithName(IdentityApplicationManagementUtil. getQNameWithIdentityApplicationNS(FrameworkConstants.Config.QNAME_AUTHENTICATION_ENDPOINT_WAIT_URL)); if (authEndpointWaitURLElem != null) { authenticationEndpointWaitURL = IdentityUtil.fillURLPlaceholders(authEndpointWaitURLElem.getText()); } }
private void readAuthenticationEndpointRetryURL(OMElement documentElement) { OMElement authEndpointRetryURLElem = documentElement.getFirstChildWithName(IdentityApplicationManagementUtil. getQNameWithIdentityApplicationNS(FrameworkConstants.Config.QNAME_AUTHENTICATION_ENDPOINT_RETRY_URL)); if (authEndpointRetryURLElem != null) { authenticationEndpointRetryURL = IdentityUtil.fillURLPlaceholders(authEndpointRetryURLElem.getText()); } }
private void readAuthenticationEndpointURL(OMElement documentElement) { OMElement authEndpointURLElem = documentElement.getFirstChildWithName(IdentityApplicationManagementUtil. getQNameWithIdentityApplicationNS(FrameworkConstants.Config.QNAME_AUTHENTICATION_ENDPOINT_URL)); if (authEndpointURLElem != null) { authenticationEndpointURL = IdentityUtil.fillURLPlaceholders(authEndpointURLElem.getText()); } }
private void readAuthenticationEndpointRetryURL(OMElement documentElement) { OMElement authEndpointRetryURLElem = documentElement.getFirstChildWithName(IdentityApplicationManagementUtil. getQNameWithIdentityApplicationNS(FrameworkConstants.Config.QNAME_AUTHENTICATION_ENDPOINT_RETRY_URL)); if (authEndpointRetryURLElem != null) { authenticationEndpointRetryURL = IdentityUtil.fillURLPlaceholders(authEndpointRetryURLElem.getText()); } }
private void readAuthenticationEndpointPromptURL(OMElement documentElement) { OMElement authEndpointPromptURLElem = documentElement.getFirstChildWithName(IdentityApplicationManagementUtil. getQNameWithIdentityApplicationNS(FrameworkConstants.Config.QNAME_AUTHENTICATION_ENDPOINT_PROMPT_URL)); if (authEndpointPromptURLElem != null) { authenticationEndpointPromptURL = IdentityUtil.fillURLPlaceholders(authEndpointPromptURLElem.getText()); } }
private void readAuthenticationEndpointMissingClaimsURL(OMElement documentElement) { OMElement authEndpointMissingClaimsURLElem = documentElement.getFirstChildWithName (IdentityApplicationManagementUtil.getQNameWithIdentityApplicationNS(FrameworkConstants.Config .QNAME_AUTHENTICATION_ENDPOINT_MISSING_CLAIMS_URL)); if (authEndpointMissingClaimsURLElem != null) { authenticationEndpointMissingClaimsURL = IdentityUtil.fillURLPlaceholders (authEndpointMissingClaimsURLElem.getText()); } }
private void readAuthenticationEndpointURL(OMElement documentElement) { OMElement authEndpointURLElem = documentElement.getFirstChildWithName(IdentityApplicationManagementUtil. getQNameWithIdentityApplicationNS(FrameworkConstants.Config.QNAME_AUTHENTICATION_ENDPOINT_URL)); if (authEndpointURLElem != null) { authenticationEndpointURL = IdentityUtil.fillURLPlaceholders(authEndpointURLElem.getText()); } }
private void readAuthenticationEndpointRetryURL(OMElement documentElement) { OMElement authEndpointRetryURLElem = documentElement.getFirstChildWithName(IdentityApplicationManagementUtil. getQNameWithIdentityApplicationNS(FrameworkConstants.Config.QNAME_AUTHENTICATION_ENDPOINT_RETRY_URL)); if (authEndpointRetryURLElem != null) { authenticationEndpointRetryURL = IdentityUtil.fillURLPlaceholders(authEndpointRetryURLElem.getText()); } }
private void readIdentifierFirstConfirmationURL(OMElement documentElement) { OMElement readIDFConfirmationElement = documentElement.getFirstChildWithName(IdentityApplicationManagementUtil. getQNameWithIdentityApplicationNS(FrameworkConstants.Config.QNAME_AUTHENTICATION_ENDPOINT_IDF_CONFIRM_URL)); if (readIDFConfirmationElement != null) { identifierFirstConfirmationURL = IdentityUtil.fillURLPlaceholders(readIDFConfirmationElement.getText()); } }
private void readIdentifierFirstConfirmationURL(OMElement documentElement) { OMElement readIDFConfirmationElement = documentElement.getFirstChildWithName(IdentityApplicationManagementUtil. getQNameWithIdentityApplicationNS(FrameworkConstants.Config.QNAME_AUTHENTICATION_ENDPOINT_IDF_CONFIRM_URL)); if (readIDFConfirmationElement != null) { identifierFirstConfirmationURL = IdentityUtil.fillURLPlaceholders(readIDFConfirmationElement.getText()); } }
private void readAuthenticationEndpointURL(OMElement documentElement) { OMElement authEndpointURLElem = documentElement.getFirstChildWithName(IdentityApplicationManagementUtil. getQNameWithIdentityApplicationNS(FrameworkConstants.Config.QNAME_AUTHENTICATION_ENDPOINT_URL)); if (authEndpointURLElem != null) { authenticationEndpointURL = IdentityUtil.fillURLPlaceholders(authEndpointURLElem.getText()); } }
private void readAuthenticationEndpointMissingClaimsURL(OMElement documentElement) { OMElement authEndpointMissingClaimsURLElem = documentElement.getFirstChildWithName (IdentityApplicationManagementUtil.getQNameWithIdentityApplicationNS(FrameworkConstants.Config .QNAME_AUTHENTICATION_ENDPOINT_MISSING_CLAIMS_URL)); if (authEndpointMissingClaimsURLElem != null) { authenticationEndpointMissingClaimsURL = IdentityUtil.fillURLPlaceholders (authEndpointMissingClaimsURLElem.getText()); } }
private void readAuthenticationEndpointWaitURL(OMElement documentElement) { OMElement authEndpointWaitURLElem = documentElement.getFirstChildWithName(IdentityApplicationManagementUtil. getQNameWithIdentityApplicationNS(FrameworkConstants.Config.QNAME_AUTHENTICATION_ENDPOINT_WAIT_URL)); if (authEndpointWaitURLElem != null) { authenticationEndpointWaitURL = IdentityUtil.fillURLPlaceholders(authEndpointWaitURLElem.getText()); } }
private void readAuthenticationEndpointPromptURL(OMElement documentElement) { OMElement authEndpointPromptURLElem = documentElement.getFirstChildWithName(IdentityApplicationManagementUtil. getQNameWithIdentityApplicationNS(FrameworkConstants.Config.QNAME_AUTHENTICATION_ENDPOINT_PROMPT_URL)); if (authEndpointPromptURLElem != null) { authenticationEndpointPromptURL = IdentityUtil.fillURLPlaceholders(authEndpointPromptURLElem.getText()); } }
private void readTenantDataListenerURLs(OMElement documentElement) { OMElement tenantDataURLsElem = documentElement.getFirstChildWithName(IdentityApplicationManagementUtil. getQNameWithIdentityApplicationNS( FrameworkConstants.Config.QNAME_TENANT_DATA_LISTENER_URLS)); if (tenantDataURLsElem != null) { for (Iterator tenantDataURLElems = tenantDataURLsElem.getChildrenWithLocalName( FrameworkConstants.Config.ELEM_TENANT_DATA_LISTENER_URL); tenantDataURLElems.hasNext(); ) { OMElement tenantDataListenerURLElem = (OMElement) tenantDataURLElems.next(); if (tenantDataListenerURLElem != null && StringUtils.isNotEmpty(tenantDataListenerURLElem.getText())) { tenantDataEndpointURLs.add(IdentityUtil.fillURLPlaceholders(tenantDataListenerURLElem.getText())); } } } }
private void readTenantDataListenerURLs(OMElement documentElement) { OMElement tenantDataURLsElem = documentElement.getFirstChildWithName(IdentityApplicationManagementUtil. getQNameWithIdentityApplicationNS( FrameworkConstants.Config.QNAME_TENANT_DATA_LISTENER_URLS)); if (tenantDataURLsElem != null) { for (Iterator tenantDataURLElems = tenantDataURLsElem.getChildrenWithLocalName( FrameworkConstants.Config.ELEM_TENANT_DATA_LISTENER_URL); tenantDataURLElems.hasNext(); ) { OMElement tenantDataListenerURLElem = (OMElement) tenantDataURLElems.next(); if (tenantDataListenerURLElem != null && StringUtils.isNotEmpty(tenantDataListenerURLElem.getText())) { tenantDataEndpointURLs.add(IdentityUtil.fillURLPlaceholders(tenantDataListenerURLElem.getText())); } } } }
private void readTenantDataListenerURLs(OMElement documentElement) { OMElement tenantDataURLsElem = documentElement.getFirstChildWithName(IdentityApplicationManagementUtil. getQNameWithIdentityApplicationNS( FrameworkConstants.Config.QNAME_TENANT_DATA_LISTENER_URLS)); if (tenantDataURLsElem != null) { for (Iterator tenantDataURLElems = tenantDataURLsElem.getChildrenWithLocalName( FrameworkConstants.Config.ELEM_TENANT_DATA_LISTENER_URL); tenantDataURLElems.hasNext(); ) { OMElement tenantDataListenerURLElem = (OMElement) tenantDataURLElems.next(); if (tenantDataListenerURLElem != null && StringUtils.isNotEmpty(tenantDataListenerURLElem.getText())) { tenantDataEndpointURLs.add(IdentityUtil.fillURLPlaceholders(tenantDataListenerURLElem.getText())); } } } }