Package org.wso2.carbon.identity.provider

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


        IdentityProviderService registerAdmin = new IdentityProviderService();
        String primaryUserName = null;;
        try {
            primaryUserName = registerAdmin.extractPrimaryUserName(ppid);
        } catch (Exception e) {
            throw new IdentityProviderException(e.getMessage(), e);
        }
        UserCredential cred = new UserCredential(selfCred);

        if (primaryUserName == null) {
            cardElement = issueCard(cred, requireAppliesTo, ppid, ppid);
View Full Code Here


             *
             * }
             */
            return elem;
        } catch (CardModelException e) {
            throw new IdentityProviderException("cardModelError", e);
        } catch (Exception e) {
            throw new IdentityProviderException("", e);
        }finally{
            if(is != null){
                try {
                    is.close();
                } catch (IOException e) {
View Full Code Here

        // Get the list of supported claims
        IdentityClaimManager claimManager = null;
        try {
            claimManager = IdentityClaimManager.getInstance();
        } catch (IdentityException e) {
            throw new IdentityProviderException(e.getMessage(), e);
        }
        Claim[] supportedClaims = null;
        SupportedClaimTypeList claimTypeList = new SupportedClaimTypeList();

        if (isOpenIdInfoCard) {
View Full Code Here

        InfoCardDO cardDo = null;

        try {
            dbman = IdentityPersistenceManager.getPersistanceManager();
        } catch (Exception e) {
            throw new IdentityProviderException(e.getMessage(), e);
        }

        cardDo = new InfoCardDO();
        cardDo.setCardId(card.getInformationCardReference().getCardId());
        cardDo.setDateIssued(card.getTimeIssued());
        cardDo.setUserId(tenantAwareUserName);
        cardDo.setDateExpires(card.getTimeExpires());
        cardDo.setOpenIDInfoCard(this.isOpenIdInfoCard);

        try {
            cardDo.setInfoCard(card.serialize());
        } catch (CardModelException e) {
            throw new IdentityProviderException(e.getMessage(), e);
        }

        try {
            dbman.createInfoCard(IdentityTenantUtil.getRegistry(), cardDo);
        } catch (Exception e) {
            throw new IdentityProviderException(e.getMessage(), e);
        }

        log.info("Information card details stored for card id : "
                + card.getInformationCardReference().getCardId());
    }
View Full Code Here

            userStore = AdminServicesUtil.getUserRealm().getUserStoreManager();
            if (userStore.getUserClaimValue(user, claim.getClaimUri(), null) != null) {
                return true;
            }
        } catch (Exception e) {
            throw new IdentityProviderException(e.getMessage(), e);
        }

        return false;

    }
View Full Code Here

      if (pubKeyAlgo.equalsIgnoreCase("DSA")) {
        signatureAlgorithm = XMLSignature.ALGO_ID_SIGNATURE_DSA;
      }

    } catch (Exception e) {
      throw new IdentityProviderException(e.getMessage(), e);
    }

  }
View Full Code Here

                            .getDisplayName(claim.getUri()), claim.getValue(), claim.getUri());
                }
            }
        } catch (Exception e) {
            log.error("Error occured while creating the display token", e);
            throw new IdentityProviderException("Error occured while creating the display token", e);
        }
        if (log.isDebugEnabled()) {
            log.debug("createDisplayToken");
        }
        return rdt;
View Full Code Here

        try {
            dbman = IdentityPersistenceManager.getPersistanceManager();
            card = dbman.getInfoCard(registry, cardId);
        } catch (IdentityException e) {
            throw new IdentityProviderException(e.getMessage(), e);
        }

        if (card != null) {
            Calendar cal = new GregorianCalendar(TimeZone.getTimeZone("UTC"));
            Date now = cal.getTime();
View Full Code Here

  public static CardIssuerConfig getInstance() throws IdentityProviderException {
    try {
      config = new CardIssuerConfig();
    } catch (Exception e) {
      throw new IdentityProviderException("Error while updating card issuer configuration", e);
    }
    return config;
  }
View Full Code Here

  public static CardIssuerConfig updateConfig() throws IdentityProviderException {
    try {
      config = new CardIssuerConfig();
    } catch (Exception e) {
      throw new IdentityProviderException("Error while updating card issuer configuration", e);
    }
    return config;
  }
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.