All Examples  Security Examples  This Package

Class examples.security.audit.LogAuditProvider

java.lang.Object
    |
    +----examples.security.audit.LogAuditProvider

public class LogAuditProvider
extends java.lang.Object
implements weblogic.security.audit.AuditProvider
Simple implementation of the audit SPI. This class just dumps the pertinent information in the server log file. It should be straightforward to write an alternate implementation that logs events to an RDBMS, for example.

Author:
Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.

Variable Index

 o log
 

Constructor Index

 o LogAuditProvider()
No-arg constructor, as required by the audit SPI.

Method Index

 o authenticateUser(String, UserInfo, User)
 
 o certificateInvalid(String, Object, X509)
 
 o checkPermission(String, Acl, Principal, Permission, boolean)
 
 o dump(String, String, String)
 
 o filterAuthenticateUser(String, UserInfo, User)
You can override this method in a subclass if you want to conditionally filter authenticateUser events.
 o filterCertificateInvalid(String, Object, X509)
You can override this method in a subclass if you want to conditionally filter certificateInvalid events.
 o filterCheckPermission(String, Acl, Principal, Permission, boolean)
You can override this method in a subclass if you want to conditionally filter checkPermission events.
 o filterRootCAInvalid(String, Object, X509)
You can override this method in a subclass if you want to conditionally filter rootCAInvalid events.
 o rootCAInvalid(String, Object, X509)
 

Field Detail

 o log
protected weblogic.logging.LogOutputStream log

Constructor Detail

 o LogAuditProvider
public LogAuditProvider()
          No-arg constructor, as required by the audit SPI.

Method Detail

 o authenticateUser
public void authenticateUser(java.lang.String subsystem,
                             weblogic.security.acl.UserInfo info,
                             weblogic.security.acl.User result)
 o filterAuthenticateUser
protected boolean filterAuthenticateUser(java.lang.String subsystem,
                                         weblogic.security.acl.UserInfo info,
                                         weblogic.security.acl.User result)
          You can override this method in a subclass if you want to conditionally filter authenticateUser events.
Returns:
whether to log this event
 o checkPermission
public void checkPermission(java.lang.String subsystem,
                            java.security.acl.Acl acl,
                            java.security.Principal principal,
                            java.security.acl.Permission permission,
                            boolean result)
 o filterCheckPermission
protected boolean filterCheckPermission(java.lang.String subsystem,
                                        java.security.acl.Acl acl,
                                        java.security.Principal principal,
                                        java.security.acl.Permission permission,
                                        boolean result)
          You can override this method in a subclass if you want to conditionally filter checkPermission events.
Returns:
whether to log this event
 o certificateInvalid
public void certificateInvalid(java.lang.String subsystem,
                               java.lang.Object source,
                               weblogic.security.X509 cert)
 o filterCertificateInvalid
protected boolean filterCertificateInvalid(java.lang.String subsystem,
                                           java.lang.Object source,
                                           weblogic.security.X509 cert)
          You can override this method in a subclass if you want to conditionally filter certificateInvalid events.
Returns:
whether to log this event
 o rootCAInvalid
public void rootCAInvalid(java.lang.String subsystem,
                          java.lang.Object source,
                          weblogic.security.X509 cert)
 o filterRootCAInvalid
protected boolean filterRootCAInvalid(java.lang.String subsystem,
                                      java.lang.Object source,
                                      weblogic.security.X509 cert)
          You can override this method in a subclass if you want to conditionally filter rootCAInvalid events.
Returns:
whether to log this event
 o dump
protected void dump(java.lang.String subsystem,
                    java.lang.String op,
                    java.lang.String message)

All Examples  Security Examples  This Package