org.inspektr.audit.spi.support
Class SpringSecurityAuditablePrincipalResolver

java.lang.Object
  extended by org.inspektr.audit.spi.support.SpringSecurityAuditablePrincipalResolver
All Implemented Interfaces:
AuditablePrincipalResolver

public final class SpringSecurityAuditablePrincipalResolver
extends Object
implements AuditablePrincipalResolver

Resolves the principal name to the one provided by Spring Security.

Since:
0.7.0
Version:
$Revision$ $Date$
Author:
Scott Battaglia

Constructor Summary
SpringSecurityAuditablePrincipalResolver()
           
 
Method Summary
 String resolveFrom(org.aspectj.lang.JoinPoint auditableTarget, Exception exception)
          Resolve the principal performing an auditable action that has incurred an exception.
 String resolveFrom(org.aspectj.lang.JoinPoint auditableTarget, Object retval)
          Resolve the principal performing an auditable action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringSecurityAuditablePrincipalResolver

public SpringSecurityAuditablePrincipalResolver()
Method Detail

resolveFrom

public String resolveFrom(org.aspectj.lang.JoinPoint auditableTarget,
                          Object retval)
Description copied from interface: AuditablePrincipalResolver
Resolve the principal performing an auditable action.

Specified by:
resolveFrom in interface AuditablePrincipalResolver
retval - The returned value
Returns:
The resource String

resolveFrom

public String resolveFrom(org.aspectj.lang.JoinPoint auditableTarget,
                          Exception exception)
Description copied from interface: AuditablePrincipalResolver
Resolve the principal performing an auditable action that has incurred an exception.

Specified by:
resolveFrom in interface AuditablePrincipalResolver
exception - The exception incurred when the join point proceeds.
Returns:
The resource String


Copyright © 2007-2012. All Rights Reserved.