Package org.wso2.carbon.identity.base

Examples of org.wso2.carbon.identity.base.IdentityException


        try {
            uri = new URI(rpUrl);
        } catch (URISyntaxException e) {
            log.error("Invalid relying party URL :" + rpUrl, e);
            throw new IdentityException("Invalid relying party URL");
        }

        try {
            url = uri.normalize().toURL();
            url = new URL(url.getProtocol().toLowerCase(), url.getHost().toLowerCase(), url
                    .getPort(), url.getPath());
            return url.toString();
        } catch (MalformedURLException e) {
            log.error("Malformed relying party URL :" + rpUrl, e);
            throw new IdentityException("Malformed relying party URL");
        }
    }
View Full Code Here


                        new Permission[]{permission});
            }
            admin.addUser(userName, password,
                    new String[]{IdentityConstants.IDENTITY_DEFAULT_ROLE}, claimList, profileName);
        } catch (UserStoreException e) {
            throw new IdentityException("Error occurred while adding user : " + userName, e);
        }
    }
View Full Code Here

            return new OrderedDenyOverridesPolicyAlg();
        } else if (ORDERED_PERMIT_OVERRIDE.equals(POLICY_COMBINING_ALGO + uri)) {
            return new OrderedPermitOverridesPolicyAlg();
        }

        throw new IdentityException("Unsupported policy algorithm " + uri);
    }
View Full Code Here

        try {
            admin = new KeyStoreAdmin(getGovernanceRegistry());
            return admin.getKeyStores();
        } catch (SecurityConfigException e) {
            log.error("Error when loading the key stores from registry", e);
            throw new IdentityException("Error when loading the key stores from registry", e);
        }
    }
View Full Code Here

            }
        }
        if (primaryKeyStore != null) {
                return getStoreEntries(primaryKeyStore.getKeyStoreName());
        }
        throw new IdentityException("Primary Keystore cannot be found.");
    }
View Full Code Here

        try {
            admin = new KeyStoreAdmin(getGovernanceRegistry());
            return admin.getStoreEntries(keyStoreName);
        } catch (SecurityConfigException e) {
            log.error("Error reading entries from the key store : " + keyStoreName);
            throw new IdentityException("Error reading entries from the keystore" + e);
        }
    }
View Full Code Here

     * @param request An instance of OpenIDAuthenticationRequest
     */
    public OpenIDSimpleReg(OpenIDAuthenticationRequest request) throws IdentityException {
        if (request == null) {
            log.debug("Request cannot be null while initializing OpenIDSimpleReg");
            throw new IdentityException("Request cannot be null while initializing OpenIDSimpleReg");
        }
        this.request = request;
    }
View Full Code Here

                    }
                }
            }
        } catch (MessageException e) {
            log.error("Failed to add required attributes of OpenID Simple Registration", e);
            throw new IdentityException(
                    "Failed to add required attributes of OpenID Simple Registration", e);
        }
    }
View Full Code Here

            return response;

        } catch (MessageException e) {
            log.error("Failed to create message extension for OpenID Simple Registration", e);
            throw new IdentityException(
                    "Failed to create message extension for OpenID Simple Registration", e);
        }
    }
View Full Code Here

                    log.debug("User is successfully authenticated.");
            }
            return true;
        } catch (Exception e) {
            log.error("Error obtaining user realm for authenticating the user", e);
            throw new IdentityException("Error obtaining user realm for authenticating the user", e);
        }
    }
View Full Code Here

TOP

Related Classes of org.wso2.carbon.identity.base.IdentityException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.