Package org.wso2.carbon.identity.provider

Examples of org.wso2.carbon.identity.provider.IdentityProviderException


        try {
            admin = IdentityPersistenceManager.getPersistanceManager();
            types = admin.getParameterValue(IdentityTenantUtil.getRegistry(null, data
                    .getUserIdentifier()), IdentityConstants.PARAM_SUPPORTED_TOKEN_TYPES);
        } catch (IdentityException e) {
            throw new IdentityProviderException(e.getMessage(), e);
        }

        arrTypes = types.split(",");

        for (int i = 0; i < arrTypes.length; i++) {
View Full Code Here


            if (log.isDebugEnabled()) {
                log.debug("Association generated :::::" + assoc.getHandle());
            }
        } catch (AssociationException e) {
            log.error("Failed to retreive assoc handle while building OpenID InfoCard header", e);
            throw new IdentityProviderException(e.getMessage());
        }

        params.set(new Parameter(IdentityConstants.OpenId.ATTR_SIGNED,
                "op_endpoint,claimed_id,identity,return_to,response_nonce,assoc_handle"));

        try {
            params.set(new Parameter(IdentityConstants.OpenId.ATTR_SIG, getSignature(false)));
        } catch (AssociationException e) {
            throw new IdentityProviderException(e.getMessage());
        } catch (MessageException msgEx) {
            throw new IdentityProviderException(msgEx.getMessage());
        }

        return params;
    }
View Full Code Here

    public RelyingPartyAdmin() throws IdentityProviderException {
        try {
            dbMan = IdentityPersistenceManager.getPersistanceManager();
        } catch (Exception e) {
            throw new IdentityProviderException(e.getMessage(), e);
        }
    }
View Full Code Here

    public RelyingPartyAdmin(String userName) throws IdentityProviderException {
        try {
            dbMan = IdentityPersistenceManager.getPersistanceManager();
            userIdentifier = userName;
        } catch (Exception e) {
            throw new IdentityProviderException(e.getMessage(), e);
        }
    }
View Full Code Here

                hostName = keyAdmin.importCertToStore(content, new File(storeFilePath).getName());
            } else {
                keyAdmin.importCertToStore(hostName, content, new File(storeFilePath).getName());
            }
        } catch (Exception e) {
            throw new IdentityProviderException(e.getMessage(), e);
        }

        if (hostName != null) {
            rpdo = new UserTrustedRPDO();
            rpdo.setHostName(hostName);
View Full Code Here

        dbMan.removeUserTrustedRelyingParty(getRegsitry(), rpdo);
        try {
            keyAdmin = new KeyStoreAdmin(IdentityTenantUtil.getRegistryService().getGovernanceSystemRegistry());
            keyAdmin.removeCertFromStore(hostName, new File(storeFilePath).getName());
        } catch (SecurityConfigException e) {
            throw new IdentityProviderException(e.getMessage(), e);
        } catch (RegistryException e) {
            throw new IdentityProviderException(e.getMessage(), e);
        }
    }
View Full Code Here

  public PPIDValueAdmin() throws IdentityProviderException {
    try {
      dbman = IdentityPersistenceManager.getPersistanceManager();
    } catch (Exception e) {
      throw new IdentityProviderException(e.getMessage(), e);
    }
  }
View Full Code Here

            openid.setDescription("OpenID");
            supportedClaims.put(IdentityConstants.CLAIM_OPENID, openid);

        } catch (IdentityException e) {
            log.error("Error while loading claims", e);
            throw new IdentityProviderException("Error while loading claims", e);
        }
    }
View Full Code Here

       userId = getUserIdentifier();

        try {
            connector = IdentityTenantUtil.getRealm(null, userId).getUserStoreManager();
        } catch (Exception e) {
            throw new IdentityProviderException(e.getMessage(), e);
        }

        // Get the column names for the URIs
        iterator = requestedClaims.values().iterator();
        list = new ArrayList<String>();

        // First we need to figure-out which attributed we need to retrieve from
        // the user store.
        while (iterator.hasNext()) {
            requestedClaimData = (OpenIDRequestedClaimData) iterator.next();
            if (requestedClaimData != null
                    && !requestedClaimData.getUri().equals(IdentityConstants.CLAIM_PPID)
                    && !requestedClaimData.getUri().equals(IdentityConstants.CLAIM_OPENID)) {
                list.add(requestedClaimData.getUri());
            }
        }

        String[] claimValues = new String[list.size()];
        // Get the claims values corresponding to the user from the user store.
        try {
            mapValues = connector.getUserClaimValues(userId, list.toArray(claimValues), null);
        } catch (Exception e) {
            throw new IdentityProviderException(e.getMessage(), e);
        }
        iterator = requestedClaims.values().iterator();

        // Iterate through the claim values retrieved and requestedClaims will
        // be populated with the corresponding values.
View Full Code Here

  public InfoCardTokenAdmin() throws IdentityProviderException {
    try {
      dbman = IdentityPersistenceManager.getPersistanceManager();
    } catch (Exception e) {
      throw new IdentityProviderException(e.getMessage(), e);
    }
  }
View Full Code Here

TOP

Related Classes of org.wso2.carbon.identity.provider.IdentityProviderException

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.