    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.

##

log

##

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

##

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

##

log

    protected weblogic.logging.LogOutputStream log

##

LogAuditProvider

    public LogAuditProvider()

No-arg constructor, as required by the audit SPI.

##

authenticateUser

    public void authenticateUser(java.lang.String subsystem,
                                 weblogic.security.acl.UserInfo info,
                                 weblogic.security.acl.User result)

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

checkPermission

    public void checkPermission(java.lang.String subsystem,
                                java.security.acl.Acl acl,
                                java.security.Principal principal,
                                java.security.acl.Permission permission,
                                boolean result)

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

certificateInvalid

    public void certificateInvalid(java.lang.String subsystem,
                                   java.lang.Object source,
                                   weblogic.security.X509 cert)

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

rootCAInvalid

    public void rootCAInvalid(java.lang.String subsystem,
                              java.lang.Object source,
                              weblogic.security.X509 cert)

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

dump

    protected void dump(java.lang.String subsystem,
                        java.lang.String op,
                        java.lang.String message)

    All Examples  Security Examples  This Package