public interface PrincipalResolver
| Modifier and Type | Field and Description |
|---|---|
static String |
ANONYMOUS_USER
Default String that can be used when the user is anonymous.
|
static String |
UNKNOWN_USER
Default String that can be used when the user cannot be determined.
|
| Modifier and Type | Method and Description |
|---|---|
String |
resolve()
Called when there is no other way to resolve the principal (i.e.
|
String |
resolveFrom(org.aspectj.lang.JoinPoint auditTarget,
Exception exception)
Resolve the principal performing an audit-able action that has incurred
an exception.
|
String |
resolveFrom(org.aspectj.lang.JoinPoint auditTarget,
Object returnValue)
Resolve the principal performing an audit-able action.
|
static final String ANONYMOUS_USER
static final String UNKNOWN_USER
String resolveFrom(org.aspectj.lang.JoinPoint auditTarget, Object returnValue)
Note, this method should NEVER throw an exception *unless* the expectation is that a failed resolution causes
the entire transaction to fail. Otherwise use UNKNOWN_USER.
auditTarget - the join point where we're auditing.returnValue - the returned valueString resolveFrom(org.aspectj.lang.JoinPoint auditTarget, Exception exception)
Note, this method should NEVER throw an exception *unless* the expectation is that a failed resolution causes
the entire transaction to fail. Otherwise use UNKNOWN_USER.
auditTarget - the join point where we're auditing.exception - The exception incurred when the join point proceeds.String resolve()
Note, this method should NEVER throw an exception *unless* the expectation is that a failed resolution causes
the entire transaction to fail. Otherwise use UNKNOWN_USER.
Copyright © 2007-2017 Apereo. All Rights Reserved.