public interface PrincipalResolver
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ANONYMOUS_USER
Default String that can be used when the user is anonymous.
|
static java.lang.String |
UNKNOWN_USER
Default String that can be used when the user cannot be determined.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
resolve()
Called when there is no other way to resolve the principal (i.e.
|
java.lang.String |
resolveFrom(org.aspectj.lang.JoinPoint auditTarget,
java.lang.Exception exception)
Resolve the principal performing an audit-able action that has incurred
an exception.
|
java.lang.String |
resolveFrom(org.aspectj.lang.JoinPoint auditTarget,
java.lang.Object returnValue)
Resolve the principal performing an audit-able action.
|
static final java.lang.String ANONYMOUS_USER
static final java.lang.String UNKNOWN_USER
java.lang.String resolveFrom(org.aspectj.lang.JoinPoint auditTarget,
java.lang.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 valuejava.lang.String resolveFrom(org.aspectj.lang.JoinPoint auditTarget,
java.lang.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.java.lang.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-2019 Apereo. All Rights Reserved.