Class SecurityAuditAspect

java.lang.Object
vaultWeb.security.aspects.SecurityAuditAspect

@Component @Order(2147483647) public class SecurityAuditAspect extends Object
Aspect that logs security-relevant events for audit purposes.

This aspect intercepts methods annotated with AuditSecurityEvent and logs details including username, event type, timestamp, IP address, and success/failure status.

  • Constructor Details

    • SecurityAuditAspect

      public SecurityAuditAspect()
  • Method Details

    • logSuccess

      public void logSuccess(org.aspectj.lang.JoinPoint joinPoint, AuditSecurityEvent auditSecurityEvent, Object result)
      Logs successful security operations.
      Parameters:
      joinPoint - the join point providing access to the method being invoked
      auditSecurityEvent - the annotation containing the event type
    • logFailure

      public void logFailure(org.aspectj.lang.JoinPoint joinPoint, AuditSecurityEvent auditSecurityEvent, Throwable ex)
      Logs failed security operations.
      Parameters:
      joinPoint - the join point providing access to the method being invoked
      auditSecurityEvent - the annotation containing the event type
      ex - the throwable that was thrown