Package org.wso2.carbon.identity.base

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


        try {
            policy = new String((byte[]) resource.getContent());
            return PolicyReader.getInstance(null, null).getPolicy(policy);
        } catch (RegistryException e) {
            log.error("Error while loading entitilement policy", e);
            throw new IdentityException("Error while loading entitilement policy", e);
        }
    }
View Full Code Here


                dto.setPolicyMetaData(policyData);
            }          
            return dto;
        } catch (RegistryException e) {
            log.error("Error while loading entitlement policy", e);
            throw new IdentityException("Error while loading entitlement policy", e);
        }
    }
View Full Code Here

            }
            return dto;
           
        } catch (RegistryException e) {
            log.error("Error while loading entitlement policy", e);
            throw new IdentityException("Error while loading entitlement policy", e);
        }
    }
View Full Code Here

            if(resource != null){
                return resource.getProperty("globalPolicyCombiningAlgorithm") ;
            }
        } catch (IdentityException e) {
            log.error("Error while loading policy combining algorithm", e);
            throw new IdentityException("Error while loading policy combining algorithm", e);
        }

        return null;
    }   
View Full Code Here

      if (httpSess.getAttribute(ServerConstants.USER_LOGGED_IN) != null) {
        try {
          return AdminServicesUtil.getSystemRegistry();
        } catch (CarbonException e) {
          log.error("Error obtaining a registry instance", e);
          throw new IdentityException(
              "Error obtaining a registry instance", e);
        }
      }
    }
        return getRegistryForAnonymousSession(domainName, username);
View Full Code Here

    public static Registry getRegistry() throws IdentityException {
        try {
            return AdminServicesUtil.getSystemRegistry();
        } catch (CarbonException e) {
            log.error("Error obtaining a registry instance", e);
            throw new IdentityException("Error obtaining a registry instance", e);
        }
    }
View Full Code Here

                return AnonymousSessionUtil.getSystemRegistryByUserName(registryService,
                        realmService, username);
            }
        } catch (CarbonException e) {
            log.error("Error obtaining a registry instance", e);
            throw new IdentityException("Error obtaining a registry instance", e);
        }
    }
View Full Code Here

                return AnonymousSessionUtil.getRealmByUserName(registryService, realmService,
                        username);
            }
        } catch (CarbonException e) {
            log.error("Error obtaining the realm", e);
            throw new IdentityException("Error Obtaining a realm", e);
        }
        return null;
    }
View Full Code Here

        try {
            return AnonymousSessionUtil.getUserRegistryByUserName(registryService, realmService,
                    username);
        } catch (CarbonException e) {
            log.error("Error obtaining UserRegistry", e);
            throw new IdentityException("Error obtaining UserRegistry", e);
        }
    }
View Full Code Here

                throw e;
            }

        } catch (RegistryException e) {
            log.error("Error While adding Service Provider", e);
            throw new IdentityException("Error while adding Service Provider", e);
        }

        if(log.isDebugEnabled()){
            log.debug("Service Provider " + serviceProviderDO.getIssuer() + " is added successfully.");
        }
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.