JBoss.orgCommunity Documentation

Chapter 16. IdentityStore

This part is represented by <stores><identity-store>... element

                
<stores>
   <attribute-stores/>
   <identity-stores>
      <identity-store> ... </identity-store>
      <identity-store> ... </identity-store>
   </identity-stores>
 </stores>
            
            

Note

<stores/> element contains <identity-store> and <attribute-store> elements. Currently <attribute-store> configuration is ignored so only <identity-store> elements can be configured.

                
<identity-store>
   <id>Sample Hibernate Store</id>
   <class>org.picketlink.idm.impl.store.hibernate.HibernateIdentityStoreImpl</class>
   <external-config/>
   <supported-relationship-types>
      <relationship-type>
        JBOSS_IDENTITY_MEMBERSHIP
      </relationship-type>
      <relationship-type>
        JBOSS_IDENTITY_ROLE
      </relationship-type>
   </supported-relationship-types>
   <supported-identity-object-types>
      <identity-object-type>
      ...
      </identity-object-type>

      ...


      <identity-object-type>
      ...
      </identity-object-type>
   </supported-identity-object-types>
   <options>
      <option>
         <name>persistenceUnit</name>
         <value>jboss-identity-model-xxx</value>
      </option>
      <option>
         <name>otherOption</name>
         <value>value1</value>
         <value>value2</value>
         <value>value3</value>
      </option>
   </options>
</identity-store>
            
            

<identity-store> element:

                
<supported-identity-object-types>
   <identity-object-type>
      <name>OFFICE</name>
      <relationships>
         <relationship>
            <relationship-type-ref>
               JBOSS_IDENTITY_MEMBERSHIP
            </relationship-type-ref>
            <identity-object-type-ref>
               IDENTITY
            </identity-object-type-ref>
         </relationship>
         <relationship>
            <relationship-type-ref>
               JBOSS_IDENTITY_MEMBERSHIP
            </relationship-type-ref>
            <identity-object-type-ref>
               CONFERENCE_ROOM
            </identity-object-type-ref>
         </relationship>
      </relationships>
      <credentials/>
      <attributes/>
      <options/>
   </identity-object-type>

   <identity-object-type>
      <name>IDENTITY</name>
      <relationships>
         <relationship>
            <relationship-type-ref>
               JBOSS_IDENTITY_ROLE
            </relationship-type-ref>
            <identity-object-type-ref>
               COMMUNITY
            </identity-object-type-ref>
         </relationship>
      </relationships>
      <credentials>
         <credential-type>PASSWORD</credential-type>
         <credential-type>BINARY</credential-type>
      </credentials>
      <attributes>
         <attribute>
            <name>picture</name>
            <mapping>user.picture</mapping>
            <type>binary</type>
            <isRequired>false</isRequired>
            <isMultivalued>false</isMultivalued>
            <isReadOnly>false</isReadOnly>
         </attribute>
      </attributes>
   </identity-object-type>
</supported-identity-object-types>
            

            

<identity-object-type> element: