S E C U R I T Y  
    
hashAlgorithm=string: The name of the java.security.MessageDigest algorithm to 
use to hash the password. There is no default so this option must be specified to 
enable hashing. When hashAlgorithm is specified, the clear text password obtained 
from the CallbackHandler is hashed before it is passed to 
UsernamePasswordLoginModule.validatePassword as the inputPassword argument. 
The expectedPassword as obtained from the database must be comparably hashed.  
    
hashEncoding=base64|hex: The string format for the hashed pass and must be 
either "base64" or "hex". Base64 is the default. 
    
hashCharset=string: The encoding used to convert the clear text password to a byte 
array. The platform default encoding is the default 
As an example DatabaseServerLoginModule configuration, consider a custom table schema 
like the following: 
CREATE TABLE Users(username VARCHAR(64) PRIMARY KEY, passwd VARCHAR(64)) 
CREATE TABLE UserRoles(username VARCHAR(64), userRoles VARCHAR(32)) 
The corresponding DatabaseServerLoginModule configuration would be: 
 
   
    
        flag = "required"> 
      java:/MyDatabaseDS 
      select passwd from Users username where 
username=? 
      select userRoles,  Roles  from UserRoles where 
username=? 
     
   
 
o r g . j b o s s . s e c u r i t y . C l i e n t L o g i n M o d u l e  
The ClientLoginModule is an implementation of LoginModule for use by JBoss clients for 
the establishment of the caller identity and credentials. This simply sets the 
org.jboss.security.SecurityAssociation.principal to the value of the NameCallback filled in by 
the CallbackHandler, and the org.jboss.security.SecurityAssociation.credential to the value 
of the PasswordCallback filled in by the CallbackHandler. This is the only supported 
mechanism for a client to establish the current thread s caller. Both stand alone client 
applications and server environments, acting as JBoss EJB clients where the security 
environment has not been configured to use JBossSX transparently, need to use the 
ClientLoginModule. 
72






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

best web hosting

 

Our partners: PHP: Hypertext Preprocessor Cheap Web Hosting JSP Web Hosting Ontario Web Hosting  Jsp Web Hosting

Cheapest Web Hosting Java Hosting Cheapest Hosting

Visionwebhosting.net Business web hosting division of Vision Web Hosting Inc.. All rights reserved