public class DefaultAuditPrincipalIdProvider extends java.lang.Object implements AuditPrincipalIdProvider
DefaultAuditPrincipalIdProvider
.Constructor and Description |
---|
DefaultAuditPrincipalIdProvider() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPrincipalIdFrom(Authentication authentication,
java.lang.Object returnValue,
java.lang.Exception exception)
Return principal id from a given authentication event.
|
boolean |
supports(Authentication authentication,
java.lang.Object resultValue,
java.lang.Exception exception)
Whether this provider can support the authentication transaction to provide a principal id.
|
public java.lang.String getPrincipalIdFrom(Authentication authentication, java.lang.Object returnValue, java.lang.Exception exception)
AuditPrincipalIdProvider
getPrincipalIdFrom
in interface AuditPrincipalIdProvider
authentication
- authentication event containing the data to computed the final principal id fromreturnValue
- the result value that is currently processed by the executing op. May be null.exception
- the exception that may have occurred as part of the current executing op. May be null.public boolean supports(Authentication authentication, java.lang.Object resultValue, java.lang.Exception exception)
AuditPrincipalIdProvider
supports
in interface AuditPrincipalIdProvider
authentication
- the authentication transaction.resultValue
- the result value that is currently processed by the executing op. May be null.exception
- the exception that may have occurred as part of the current executing op. May be null.