public class SAML2Auditor extends Object implements SAML2EventLogger
Constructor and Description |
---|
SAML2Auditor(AuditEventPublisher auditEventPublisher,
AuditEventFactory auditEventFactory,
javax.servlet.http.HttpServletRequest request)
Constructor for SAML2Auditor
|
Modifier and Type | Method and Description |
---|---|
void |
auditAccessAttempt()
Publishes an audit event with details of the attempted SAML2 operation, if the 'access' topic is audited.
|
void |
auditAccessFailure(String errorCode,
String message)
Publishes an event with details of the failed CREST operation, if the 'access' topic is audited.
|
void |
auditAccessSuccess()
Publishes an event with details of the successfully completed SAML2 operation, if the 'access' topic is audited.
|
void |
auditForwardToLocalUserLogin()
Audits a forward to local user Login Aciton
|
void |
auditForwardToProxy()
Audits a forward to proxy action.
|
void |
setAuthTokenId(Object session) |
void |
setMethod(String method) |
void |
setRealm(String realm) |
void |
setRequestId(String authnRequestId)
/**
|
void |
setSessionTrackingId(String trackingId) |
void |
setSSOTokenId(Object session) |
void |
setUserId(String userId) |
public SAML2Auditor(AuditEventPublisher auditEventPublisher, AuditEventFactory auditEventFactory, javax.servlet.http.HttpServletRequest request)
auditEventPublisher
- The AuditEventPublisherauditEventFactory
- The AuditEventFactoryrequest
- The HttpServletReqeust associated with the SAML2 requestpublic void auditAccessAttempt()
SAML2EventLogger
auditAccessAttempt
in interface SAML2EventLogger
public void auditAccessSuccess()
SAML2EventLogger
auditAccessSuccess
in interface SAML2EventLogger
public void auditAccessFailure(String errorCode, String message)
SAML2EventLogger
auditAccessFailure
in interface SAML2EventLogger
errorCode
- A unique code that identifies the error condition.message
- A human-readable description of the error that occurred.public void setSessionTrackingId(String trackingId)
setSessionTrackingId
in interface SAML2EventLogger
trackingId
- Unique alias of session.public void setUserId(String userId)
setUserId
in interface SAML2EventLogger
userId
- Identifies Subject of authentication.public void setRealm(String realm)
setRealm
in interface SAML2EventLogger
realm
- The realm for which the event is being logged.public void setMethod(String method)
setMethod
in interface SAML2EventLogger
method
- Identifies the operation invoked.public void auditForwardToProxy()
SAML2EventLogger
auditForwardToProxy
in interface SAML2EventLogger
public void auditForwardToLocalUserLogin()
SAML2EventLogger
auditForwardToLocalUserLogin
in interface SAML2EventLogger
public void setRequestId(String authnRequestId)
SAML2EventLogger
setRequestId
in interface SAML2EventLogger
authnRequestId
- the request id to log for this saml2 auth requestpublic void setSSOTokenId(Object session)
setSSOTokenId
in interface SAML2EventLogger
session
- sets the sso token idpublic void setAuthTokenId(Object session)
setAuthTokenId
in interface SAML2EventLogger
session
- the auth token id for the preceding authentication requestCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.