| Constructor and Description |
|---|
TestAuditApi() |
| Modifier and Type | Method and Description |
|---|---|
void |
audit(JsonValue auditMessage)
Audits the authentication request, using the audit information from the given audit message.
|
void |
clear()
Clears the stored audit records.
|
static AuditApi |
getAuditApi()
Factory method called by the Jaspi runtime to get the instance of the
AuditApi to use when auditing
authentication requests. |
List<JsonValue> |
getAuditRecords()
Gets the audit records.
|
public static AuditApi getAuditApi()
AuditApi to use when auditing
authentication requests.TestAuditApi.public void audit(JsonValue auditMessage)
Audits the authentication request, using the audit information from the given audit message.
For successful authentications:
{
"result": "SUCCESSFUL",
"requestId": "...",
"principal": [
"demo"
],
"context": {
...
},
"sessionId": "...",
"entries": [
{
"moduleId": "Session-JwtSessionModule",
"result": "SUCCESSFUL",
"info": {
"principal": "alice",
"...": "...",
...
}
}, ...
],
"transactionId" : "..."
}
For failed authentications:
{
"result": "FAILED",
"requestId": "...",
"principal": [
"demo",
... //Multiple auth modules could identify different principals
],
"context": {
...
},
"entries": [
{
"moduleId": "Session-JwtSessionModule",
"result": "FAILED",
"reason": "...",
"info": {
"principal": "bob",
"...": "...",
...
}
}, ...
],
"transactionId" : "..."
}
public List<JsonValue> getAuditRecords()
public void clear()
Copyright © 2025 Open Identity Platform Community. All rights reserved.