org.glassfish.webservices.monitoring
Class LogAuthenticationListener

java.lang.Object
  extended by org.glassfish.webservices.monitoring.LogAuthenticationListener
All Implemented Interfaces:
AuthenticationListener

public class LogAuthenticationListener
extends java.lang.Object
implements AuthenticationListener

Log all authentication successes and failures.

Author:
Jerome Dochez

Constructor Summary
LogAuthenticationListener()
          Creates a new instance of LogAuthenticationListener
 
Method Summary
 void authFailure(BundleDescriptor bundleDesc, Endpoint endpoint, java.security.Principal principal)
          notification that a user authentication attempt has failed.
 void authSucess(BundleDescriptor bundleDesc, Endpoint endpoint, java.security.Principal principal)
          notification that a user properly authenticated while making a web service invocation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogAuthenticationListener

public LogAuthenticationListener()
Creates a new instance of LogAuthenticationListener

Method Detail

authSucess

public void authSucess(BundleDescriptor bundleDesc,
                       Endpoint endpoint,
                       java.security.Principal principal)
notification that a user properly authenticated while making a web service invocation.

Specified by:
authSucess in interface AuthenticationListener

authFailure

public void authFailure(BundleDescriptor bundleDesc,
                        Endpoint endpoint,
                        java.security.Principal principal)
notification that a user authentication attempt has failed.

Specified by:
authFailure in interface AuthenticationListener
Parameters:
endpoint - the endpoint selector
principal - Optional principal that failed


Copyright © 2012 GlassFish Community. All Rights Reserved.