Identity Exception
1909191019111912191319141915191619171918191919201921
{ 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"); } }
197519761977197819791980198119821983198419851986198719881989199019911992
{ 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"); } }
20182019202020212022202320242025
{ return ((Session)ctx.getIdentityStoreSession().getSessionContext()); } catch (Exception e) { throw new IdentityException("Cannot obtain Hibernate Session", e); } }
20552056205720582059206020612062
throw new IllegalArgumentException("IdentityObjectType is null"); } if (!getSupportedFeatures().isIdentityObjectTypeSupported(iot)) { throw new IdentityException("IdentityType not supported by this IdentityStore implementation: " + iot); } }
2076207720782079208020812082208320842085
.setParameter("name", type.getName()) .uniqueResult() ; } catch (HibernateException e) { throw new IdentityException("IdentityObjectType[" + type.getName() + "] not present in the store.", e); } return hibernateType; }
2100210121022103210421052106210721082109
.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; }
2122212321242125212621272128212921302131
.setParameter("name", iot.getName()) .uniqueResult(); } catch (Exception e) { throw new IdentityException("IdentityObjectRelationshipType[ " + iot.getName() + "] not present in the store."); } return relationshipType; }
21412142214321442145214621472148214921502151
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; }
22332234223522362237223822392240
hibernateSession.getTransaction().commit(); } catch (Exception e) { throw new IdentityException("Failed to create store realm", e); } }
2331233223332334233523362337
{ mapping = name; return mapping; } throw new IdentityException("Attribute name is not configured in this store"); }