/** * Generate the unique user domain value in the format of "FEDERATED:idp_name". * * @param authenticatedIDP : Name of the IDP, which authenticated the user. * @return */ public static String getFederatedUserDomain(String authenticatedIDP) { if (IdentityUtil.isNotBlank(authenticatedIDP)) { return OAuthConstants.UserType.FEDERATED_USER_DOMAIN_PREFIX + OAuthConstants.UserType.FEDERATED_USER_DOMAIN_SEPARATOR + authenticatedIDP; } else { return OAuthConstants.UserType.FEDERATED_USER_DOMAIN_PREFIX; } }
/** * Should not allow to have domain prefixed with 'FEDERATED', to avoid conflicting with federated user domain. * @param domain : domain name * @return */ private void validateForFederatedDomain(String domain) throws UserStoreException { if (IdentityUtil.isNotBlank(domain) && domain.toUpperCase().startsWith("FEDERATED")) { throw new UserStoreException("'FEDERATED' is a reserved user domain prefix. " + "Please start the domain name in a different manner."); } }
/** * Should not allow to have domain prefixed with 'FEDERATED', to avoid conflicting with federated user domain. * @param domain : domain name * @return */ private void validateForFederatedDomain(String domain) throws UserStoreException { if (IdentityUtil.isNotBlank(domain) && domain.toUpperCase().startsWith("FEDERATED")) { throw new UserStoreException("'FEDERATED' is a reserved user domain prefix. " + "Please start the domain name in a different manner."); } }
if (IdentityUtil.isNotBlank(errorCode)) { if (IdentityUtil.isNotBlank(errorMessage)) { if (IdentityUtil.isNotBlank(errorUri)) {
if (IdentityUtil.isNotBlank(errorCode)) { if (IdentityUtil.isNotBlank(errorMessage)) { if (IdentityUtil.isNotBlank(errorUri)) {
Registry registryToLoad = registry; String resourceUri = SecurityConstants.SECURITY_POLICY + "/" + scenarioId; if (IdentityUtil.isNotBlank(policyPath) && scenarioId.equals(SecurityConstants.POLICY_FROM_REG_SCENARIO)) { resourceUri = policyPath.substring(policyPath.lastIndexOf(':') + 1); OMElement policyElement = builder.getDocumentElement(); if (IdentityUtil.isNotBlank(policyPath) && scenarioId.equals(SecurityConstants.POLICY_FROM_REG_SCENARIO)) { OMAttribute att = policyElement.getAttribute(SecurityConstants.POLICY_ID_QNAME);
Registry registryToLoad = registry; String resourceUri = SecurityConstants.SECURITY_POLICY + "/" + scenarioId; if (IdentityUtil.isNotBlank(policyPath) && scenarioId.equals(SecurityConstants.POLICY_FROM_REG_SCENARIO)) { resourceUri = policyPath.substring(policyPath.lastIndexOf(':') + 1); OMElement policyElement = builder.getDocumentElement(); if (IdentityUtil.isNotBlank(policyPath) && scenarioId.equals(SecurityConstants.POLICY_FROM_REG_SCENARIO)) { OMAttribute att = policyElement.getAttribute(SecurityConstants.POLICY_ID_QNAME);
Registry registryToLoad = registry; String resourceUri = SecurityConstants.SECURITY_POLICY + "/" + scenarioId; if (IdentityUtil.isNotBlank(policyPath) && scenarioId.equals(SecurityConstants.POLICY_FROM_REG_SCENARIO)) { resourceUri = policyPath.substring(policyPath.lastIndexOf(':') + 1); OMElement policyElement = builder.getDocumentElement(); if (IdentityUtil.isNotBlank(policyPath) && scenarioId.equals(SecurityConstants.POLICY_FROM_REG_SCENARIO)) { OMAttribute att = policyElement.getAttribute(SecurityConstants.POLICY_ID_QNAME);
JSONArray grantTypes = (JSONArray) obj; for (Object grantType : grantTypes) { if (grantType instanceof String && IdentityUtil.isNotBlank((String) grantType)) { registrationRequestProfile.getGrantTypes().add((String) grantType); if (IdentityUtil.isNotBlank(grantType)) { registrationRequestProfile.getGrantTypes().add(grantType);
if (IdentityUtil.isNotBlank(policyPath) && scenarioId.equals(SecurityConstants.POLICY_FROM_REG_SCENARIO)) { Parameter pathParam = new Parameter(SecurityConstants.SECURITY_POLICY_PATH,
if (IdentityUtil.isNotBlank(policyPath) && scenarioId.equals(SecurityConstants.POLICY_FROM_REG_SCENARIO)) { Parameter pathParam = new Parameter(SecurityConstants.SECURITY_POLICY_PATH,
if (IdentityUtil.isNotBlank(policyPath) && scenarioId.equals(SecurityConstants.POLICY_FROM_REG_SCENARIO)) { Parameter pathParam = new Parameter(SecurityConstants.SECURITY_POLICY_PATH,
if (IdentityUtil.isNotBlank(policyPath)) { OMText policyPathValue = factory.createOMText(policyPathElement, policyPath); policyPathElement.addChild(policyPathValue);
if (IdentityUtil.isNotBlank(policyPath)) { OMText policyPathValue = factory.createOMText(policyPathElement, policyPath); policyPathElement.addChild(policyPathValue);
if (IdentityUtil.isNotBlank(policyPath)) { OMText policyPathValue = factory.createOMText(policyPathElement, policyPath); policyPathElement.addChild(policyPathValue);