Examples of IdentityException


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

    } catch (MessageException e) {
      log
          .error(
              "Error while adding retrieved user attributes to the session in OpenIDSimpleReg",
              e);
      throw new IdentityException(
          "Error while adding retrieved user attributes to the session in OpenIDSimpleReg",
          e);
    }
  }
View Full Code Here

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

          }
        }
      }
    } catch (MessageException e) {
      log.error("Error while creating the message extension for OpenIDAttributeExchange", e);
      throw new IdentityException(
          "Error while creating the message extension for OpenIDAttributeExchange", e);
    }

    return fetchReq;
  }
View Full Code Here

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

    } catch (MessageException e) {
      log
          .error(
              "Error while adding retrieved user attributes to the session in OpenIDAttributeExchange",
              e);
      throw new IdentityException(
          "Error while adding retrieved user attributes to the session in OpenIDAttributeExchange",
          e);
    }
    }
View Full Code Here

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

        }
      }
    } catch (MessageException e) {
      log.error("Error while adding retrieved user attributes to the session in OpenIDPape",
          e);
      throw new IdentityException(
          "Error while adding retrieved user attributes to the session in OpenIDPape", e);
    }
  }
View Full Code Here

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

                    return ((CertDataDetail) certData).getCertificate();
                }
            }
        } catch (Exception e) {
            log.error("Error occured while reading certificate from the user trusted key store", e);
            throw new IdentityException(
                    "Error occured while reading certificate from the user trusted key store", e);
        }
        return null;
    }
View Full Code Here

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

            ConsumerFactory factory = new ConsumerFactory(new InMemoryConsumerAssociationStore());
            consumerHelper = factory.getConsumerHelper();
        } catch (Exception e) {
            log.error("Relying Party initialization failed", e);
            // Present error to the user
            throw new IdentityException("Relying Party initialization failed", e);
        }

    }
View Full Code Here

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

     */
    public String doOpenIDAuthentication(OpenIDAuthenticationRequest request)
            throws IdentityException {

        if (request == null)
            throw new IdentityException("Invalid OpenID authentication request");

        if (request.getReturnUrl() == null)
            request.setReturnUrl((String) request.getRequest().getParameter("returnUrl"));

        if (log.isDebugEnabled()) {
View Full Code Here

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

                discovered);
        if (authResponse.getAuthResultType() == AuthResponseHelper.ResultType.AUTH_SUCCESS) {
            return authResponse.getAuthResponse();
        } else {
            log.error("OpenID verification failed");
            throw new IdentityException("OpenID verification failed");
        }

    }
View Full Code Here

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

            String value = authReq.getDestinationUrl(true);
            return value;
        } catch (Exception e) {
            log.error(e.getMessage(), e);
            // Present error to the user
            throw new IdentityException(e.getMessage(), e);
        }
    }
View Full Code Here

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

            mode = response.getParameterValue(IdentityConstants.OpenId.ATTR_MODE);

            if (mode != null && IdentityConstants.OpenId.CANCEL.equals(mode)) {
                // User has denied sending his profile info :(
                throw new IdentityException("User has denied sending his profile info");
            }

            authSuccess = (AuthSuccess) verifyOpenID(request, response);

            claimList = new ArrayList<ClaimDTO>();

            for (Object alias : authSuccess.getExtensions()) {
                extension = OpenIDExtensionFactory.getInstance().getExtension((String) alias,
                        authSuccess);
                if (extension != null)
                    extension.setSessionAttributes(claimList);
            }

            openID = new OpenIDDTO();
            openID.setOpenID(authSuccess.getIdentity());
            openID.setClaims(claimList.toArray(new ClaimDTO[claimList.size()]));

            return openID;

        } catch (OpenIDException e) {
            log.error(e.getMessage());
            // Present error to the user.
            throw new IdentityException("OpenID authentication failed", e);
        }
    }
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.