Examples of RelyingPartyAdmin


Examples of org.wso2.carbon.identity.provider.admin.RelyingPartyAdmin

                                    Vector certRDN = null;

                                    cert = (X509Certificate) cacerts.getCertificate(alilas);
                                    certRDN = splitAndTrim(cert.getSubjectDN().getName());
                                    if (certRDN.equals(issuerRDN)) {
                                        RelyingPartyAdmin rpAdmin = null;
                                        String hostName = null;
                                        // We have the issuer certificate in our trusted certificate
                                        trusted = true;
                                        this.rpCert = receivedCert;

                                        // If this relying party is not registered register it in
                                        // the DB
                                        rpAdmin = new RelyingPartyAdmin(userIdentifier);
                                        hostName = IdentityProviderUtil.getAppliesToHostName(data);
                                        if (rpAdmin.getRelyingParty(hostName) == null) {
                                            rpAdmin.createGloabllyTrustedRelyingParty(hostName);
                                        }
                                        break;
                                    }
                                }
                            }
View Full Code Here

Examples of org.wso2.carbon.identity.provider.admin.RelyingPartyAdmin

     *
     * @param userrp
     * @throws Exception
     */
    public void createUserTrustedRP(UserTrustedRPDTO userrp) throws Exception {
        RelyingPartyAdmin rpAdmin = null;

        if (userrp == null) {
            throw new IllegalArgumentException(
                    "Invalid parameters provided to getAllUserTrustedRelyingParties");
        }
        validateInputParameters(new String[]{userrp.getUserName()},
                "Invalid parameters provided to getAllUserTrustedRelyingParties");
        checkUserAuthorization(userrp.getUserName(), "getAllUserTrustedRelyingParties");
        rpAdmin = new RelyingPartyAdmin();
        rpAdmin.createUserTrustedRelyingParty(userrp.getUserName(), userrp.getHostName(), userrp
                .getFileContent());
    }
View Full Code Here

Examples of org.wso2.carbon.identity.provider.admin.RelyingPartyAdmin

        validateInputParameters(new String[]{userId},
                "Invalid parameters provided to getAllUserTrustedRelyingParties");
        checkUserAuthorization(userId, "getAllUserTrustedRelyingParties");

        RelyingPartyAdmin rpAdmin = null;
        rpAdmin = new RelyingPartyAdmin();

        rpdo = rpAdmin.getAllUserTrustedRelyingParties(userId);

        if (rpdo != null) {
            rps = new UserTrustedRPDTO[rpdo.length];
            for (int i = 0; i < rpdo.length; i++) {
                UserTrustedRPDTO rp = null;
View Full Code Here

Examples of org.wso2.carbon.identity.provider.admin.RelyingPartyAdmin

     *
     * @param userrp
     * @throws Exception
     */
    public void removeUserTrustedRelyingParty(UserTrustedRPDTO userrp) throws Exception {
        RelyingPartyAdmin rpAdmin = null;
        validateInputParameters(new String[]{userrp.getUserName()},
                "Invalid parameters provided to removeUserTrustedRelyingParty");
        checkUserAuthorization(userrp.getUserName(), "removeUserTrustedRelyingParty");
        rpAdmin = new RelyingPartyAdmin();
        rpAdmin.removeUserTrustedRelyingParty(userrp.getUserName(), userrp.getHostName());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.