Package org.jboss.identity.idm.exception

Examples of org.jboss.identity.idm.exception.IdentityException


         {
            return Arrays.equals((byte[])value, hibernateCredential.getBinaryValue());
         }
         else
         {
            throw new IdentityException("Not supported credential value: " + value.getClass());
         }
      }
      else
      {
         throw new IdentityException("CredentialType not supported for a given IdentityObjectType");
      }
   }
View Full Code Here


         {
            hibernateCredential.setBinaryValue((byte[])value);
         }
         else
         {
            throw new IdentityException("Not supported credential value: " + value.getClass());
         }

         em.persist(hibernateCredential);

         hibernateObject.addCredential(hibernateCredential);

      }
      else
      {
         throw new IdentityException("CredentialType not supported for a given IdentityObjectType");
      }
   }
View Full Code Here

      {
         return ((Session)ctx.getIdentityStoreSession().getSessionContext());
      }
      catch (Exception e)
      {
         throw new IdentityException("Cannot obtain Hibernate Session", e);
      }
   }
View Full Code Here

         throw new IllegalArgumentException("IdentityObjectType is null");
      }

      if (!getSupportedFeatures().isIdentityObjectTypeSupported(iot))
      {
         throw new IdentityException("IdentityType not supported by this IdentityStore implementation: " + iot)
      }
   }
View Full Code Here

            .setParameter("name", type.getName())
            .uniqueResult() ;
      }
      catch (HibernateException e)
      {
         throw new IdentityException("IdentityObjectType[" + type.getName() + "] not present in the store.", e);
      }

      return hibernateType;
   }
View Full Code Here

            .setParameter("realm", getRealm(em, ctx))
            .uniqueResult();
      }
      catch (Exception e)
      {
         throw new IdentityException("IdentityObject[ " + io.getName() + " | " + io.getIdentityType().getName() + "] not present in the store.", e);
      }

      return hibernateObject;
   }
View Full Code Here

            .setParameter("name", iot.getName())
            .uniqueResult();
      }
      catch (Exception e)
      {
         throw new IdentityException("IdentityObjectRelationshipType[ " + iot.getName() + "] not present in the store.");
      }

      return relationshipType;
   }
View Full Code Here

          hibernateType = (HibernateIdentityObjectCredentialType)session.
               createCriteria(HibernateIdentityObjectCredentialType.class).add(Restrictions.eq("name", credentialType.getName())).uniqueResult();
      }
      catch (HibernateException e)
      {
         throw new IdentityException("IdentityObjectCredentialType[ " + credentialType.getName() + "] not present in the store.");
      }

      return hibernateType;

   }
View Full Code Here

         hibernateSession.getTransaction().commit();

      }
      catch (Exception e)
      {
         throw new IdentityException("Failed to create store realm", e);
      }
   }
View Full Code Here

      {
         mapping = name;
         return mapping;
      }

      throw new IdentityException("Attribute name is not configured in this store");
   }
View Full Code Here

TOP

Related Classes of org.jboss.identity.idm.exception.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.