public class LoggerSecurityAudit extends Object implements SecurityAudit
package.html
Modifier and Type | Field and Description |
---|---|
static Logger |
auditLogger
Logger used for auditing
|
Constructor and Description |
---|
LoggerSecurityAudit()
Create a security audit using the configuration given entirely by the LogManager properties.
|
Modifier and Type | Method and Description |
---|---|
void |
accessDenied(SecurityContext securityContext,
SessionDetails sessionDetails,
Privilege privilege,
String className)
Audit access denied events as WARNING
|
void |
accessGranted(SecurityContext securityContext,
SessionDetails sessionDetails,
Privilege privilege,
String className)
Audit access granted events as FINE
|
void |
authenticationFailed(SecurityContext securityContext,
AuthenticationException authenticationException)
Audit authentication failed events as SEVERE
|
void |
authenticationInvalid(AuthenticationToken token)
Audit invalid authentication session events as SEVERE
|
void |
authenticationSuccessful(SecurityContext in,
SecurityContext out)
Audit authentication successful events as INFO
|
void |
operationsDenied(String operationsMethod,
String operationPath,
Map<String,String[]> parameterMap,
String username,
String session,
int status) |
void |
operationsGranted(String operationsMethod,
String operationPath,
Map<String,String[]> parameterMap,
String username,
String session,
int status) |
public static final Logger auditLogger
public LoggerSecurityAudit()
public void authenticationFailed(SecurityContext securityContext, AuthenticationException authenticationException)
authenticationFailed
in interface SecurityAudit
securityContext
- Security context used to authenticate.authenticationException
- reason for authentication failure.public void authenticationSuccessful(SecurityContext in, SecurityContext out)
authenticationSuccessful
in interface SecurityAudit
in
- Security context used to authenticateout
- Security context returned upon successful authenticationpublic void authenticationInvalid(AuthenticationToken token)
authenticationInvalid
in interface SecurityAudit
token
- Security context holding the authentication token.public void accessDenied(SecurityContext securityContext, SessionDetails sessionDetails, Privilege privilege, String className)
accessDenied
in interface SecurityAudit
securityContext
- Security context holding the authentication tokensessionDetails
- details of this sessionprivilege
- required privilegeclassName
- The class name on which to operatepublic void accessGranted(SecurityContext securityContext, SessionDetails sessionDetails, Privilege privilege, String className)
accessGranted
in interface SecurityAudit
securityContext
- Security context holding the authentication tokenprivilege
- The privilege grantedclassName
- The class name on which to operatepublic void operationsGranted(String operationsMethod, String operationPath, Map<String,String[]> parameterMap, String username, String session, int status)
operationsGranted
in interface SecurityAudit
public void operationsDenied(String operationsMethod, String operationPath, Map<String,String[]> parameterMap, String username, String session, int status)
operationsDenied
in interface SecurityAudit
Copyright © GigaSpaces.