Interface BankingApprovalService

All Known Implementing Classes:
BankingApprovalServiceImpl

public interface BankingApprovalService
Security pattern example for approving a payment-like request.
  • Method Summary

    Modifier and Type
    Method
    Description
    Approves a payment request when the caller has the required role and permission.
    Returns safe application audit entries for demonstration.
  • Method Details

    • approvePayment

      ApprovalResult approvePayment(PaymentId id, Money amount)
      Approves a payment request when the caller has the required role and permission.
      Parameters:
      id - payment identifier
      amount - sensitive amount value
      Returns:
      approval result
    • auditLog

      List<String> auditLog()
      Returns safe application audit entries for demonstration.
      Returns:
      immutable audit entries