Package org.wso2.carbon.identity.base

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


            authReqDTO.setDoSignAssertions(spDO.isDoSignAssertions());
            return true;

        } catch (Exception e) {
            log.error("Error validating the issuer", e);
            throw new IdentityException("Error validating the issuer", e);
        }

    }
View Full Code Here


                    return false;
                }
            }
        } catch (Exception e) {
            log.error("Error obtaining the service provider info from registry", e);
            throw new IdentityException("Error obtaining the service provider info from registry", e);
        }
        return false;
    }
View Full Code Here

                .getPersistanceManager();
        try {
            return persistenceManager.addServiceProvider(registry, serviceProviderDO);
        } catch (IdentityException e) {
            log.error("Error obtaining a registry for adding a new service provider", e);
            throw new IdentityException("Error obtaining a registry for adding a new service provider", e);
        }
    }
View Full Code Here

                serviceProviders[i] = providerDTO;
            }
        } catch (IdentityException e) {
            log.error("Error obtaining a registry intance for reading service provider list", e);
            throw new IdentityException("Error obtaining a registry intance for reading service provider list", e);
        }

        SAMLSSOServiceProviderInfoDTO serviceProviderInfoDTO = new SAMLSSOServiceProviderInfoDTO();
        serviceProviderInfoDTO.setServiceProviders(serviceProviders);
View Full Code Here

        try {
            IdentityPersistenceManager persistenceManager = IdentityPersistenceManager.getPersistanceManager();
            return persistenceManager.removeServiceProvider(registry, issuer);
        } catch (IdentityException e) {
            log.error("Error removing a Service Provider");
            throw new IdentityException("Error removing a Service Provider", e);
        }
    }
View Full Code Here

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

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

      }

      return fetchResponse;
    } catch (MessageException e) {
      log.error("Failed to create message extension for Attribute Exchange", e);
      throw new IdentityException(
          "Failed to create message extension for Attribute Exchange", e);
    }
  }
View Full Code Here

            if (log.isDebugEnabled()) {
                log.debug("Authentication Request Validation is successfull..");
            }
            return validationResponse;
        } catch (Exception e) {
            throw new IdentityException("Error validating the authentication request", e);
        }
    }
View Full Code Here

   * @param request An instance of OpenIDAuthenticationRequest
   */
  public OpenIDPape(OpenIDAuthenticationRequest request) throws IdentityException {
    if (request == null) {
      log.debug("Request cannot be null while initializing OpenIDPape");
      throw new IdentityException("Request cannot be null while initializing OpenIDPape");
    }
    this.request = request;
  }
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.