The RACF Proxy Gatekeeper
Enforce RACF authorization before executing a command.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Proxy
ARCANUM SCHOOL: Abjuration // Warding
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
/* ooRexx Proxy */
::class RealCommand
::method execute
say "Executing high-privilege system command."
::class RACFProxy
::attribute user
::attribute command
::method init
use arg user
self~user = user
self~command = .RealCommand~new()
::method execute
if self~user = 'SYSADMIN' then do
self~command~execute()
end
else do
say "RACF Violation: Access Denied."
end
The Proxy acts as the gatekeeper, consulting RACF wards before granting the user an audience with the underlying high-privilege command.
Runic Tags:
#proxy
#racf
#security
#rexx