JdbcAuthenticationManagerDataModel

Description

At a first look, jGuardīs data model would look a little hard to understand. To make it a little bit easier to understand, here it goes a definition of the data structure used by jGuardīs Authentication (JDBC) module.

Tables and Fields

Tables

NameDescription
jg_user 
jg_credentialStores all Credential (information related to a specific user), like login, password, security id, born date, motherīs maiden name, etc.
jg_principalStores all the Principals (Userīs Roles and Userīs Responsibilities - itīs called Principal to keep compatibility with JAAS nomeclature).
jg_user_principalStores the relations regarding Users and Principals. An association means that the User has the Principal. As each Application has it owns Principals, if a User has a Principal named "Admin" in appA and also in appB, it must be associated with both Principals (even the name being the same the Principals are related to the Applicationīs display-name (web.xml tag).

Table: jg_user

Field NameDescription
idthe Userīs id. It will be used to make the link between the user and his credentials, also with his principals.

Table: jg_credential

Field NameDescription
idthe Credentialīs id.
user_idThe Userīs id wich owns this Credential.
public_visibilityIs this Credential visible to everyone or just to a Subject with proper access?
cred_nameThe Credentialīs name. This field will identify the Credential.
cred_valueThe Credentialīs value. This is the value of the Credential.

Table: jg_principal

Field NameDescription
idthe Principalīs id.
namethe Principalīs name.
application_namethe web.xmlīs display-name tag value of the application where this Principal exists.
class_nameuntil now, is net.sf.jguard.principals.JGuardPrincipal, wich is the full qualified name of the class that will be instantiated by jGuard to store this Principal.

Table: jg_user_principal

Field NameDescription
user_idthe Userīs id.
principal_idthe Principalīs id.

ER Diagram

jguard_authentication.jpg

Version 1.19 last modified by Inácio Ferrarini on 18/09/2006 at 06:43

Comments 0

No comments for this document

Attachments 2

Image
jguard_authentication.jpg 1.3
PostedBy: Inácio Ferrarini on 18/09/2006 (31kb )
BIN
jguard_authentication.xcf 1.1
PostedBy: Inácio Ferrarini on 18/09/2006 (105kb )
 

Creator: Inácio Ferrarini on 2006/09/02 23:16
jGuard team copyright 2004-2007
1.1.1