FileDocCategorySizeDatePackage
AuditModule.javaAPI DocGlassfish v2 API4953Fri May 04 22:32:54 BST 2007com.sun.appserv.security

AuditModule

public abstract class AuditModule extends Object
Base class that should be extended by all classes that wish to provide their own Audit support.
author
Harpreet Singh
version

Fields Summary
Properties
props
Constructors Summary
Methods Summary
public voidauthentication(java.lang.String user, java.lang.String realm, boolean success)
Invoked post authentication request for a user in a given realm

param
user username for whom the authentication request was made
param
realm the realm name under which the user is authenticated.
param
success the status of the authentication

    
public voidejbAsWebServiceInvocation(java.lang.String endpoint, boolean success)
Invoked during validation of the web service request

param
endpoint The representation of the web service endpoint
param
success the status of the web service request validation

    
public voidejbInvocation(java.lang.String user, java.lang.String ejb, java.lang.String method, boolean success)
Invoked post ejb authorization request.

param
user the username for whom the authorization was performed
param
ejb the ejb name for which this authorization was performed
param
method the method name for which this authorization was performed
param
success the status of the ejb authorization request

    
public voidinit(java.util.Properties props)
Method is invoked at server startup, during AuditModule initialization. If method returns without any exception then S1AS assumes that the module is ready to serve any requests.

param
props the properties for the AuditModule. These properties are defined in the domain.xml

                                                   
        
        this.props = props;
    
public voidserverShutdown()
Invoked upon completion of the server shutdown

    
public voidserverStarted()
Invoked upon completion of the server startup

    
public voidwebInvocation(java.lang.String user, javax.servlet.http.HttpServletRequest req, java.lang.String type, boolean success)
Invoked post web authorization request.

param
user the username for whom the authorization was performed
param
req the HttpRequest object for the web request
param
type the permission type, hasUserDataPermission or hasResourcePermission.
param
success the status of the web authorization request

    
public voidwebServiceInvocation(java.lang.String uri, java.lang.String endpoint, boolean success)
Invoked during validation of the web service request

param
uri The URL representation of the web service endpoint
param
endpoint The name of the endpoint representation
param
success the status of the web service request validation