Package org.forgerock.openam.audit.model
Class AuthenticationAuditEntry
- java.lang.Object
-
- org.forgerock.openam.audit.model.AuthenticationAuditEntry
-
public class AuthenticationAuditEntry extends Object
A class which represents an entries object in the Commons authentication schema (See Commons Audit Projectevents.json). This ensures that the elements within the object are in line with those defined in the schema.- Since:
- 13.0.0
-
-
Constructor Summary
Constructors Constructor Description AuthenticationAuditEntry()Create an instance ofAuthenticationAuditEntry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInfo(AuditConstants.EntriesInfoFieldKey key, String value)Add an info value.Map<String,String>getInfo()Get the info values.StringgetModuleId()Get the module id.org.forgerock.audit.events.AuthenticationAuditEventBuilder.StatusgetResult()Get the result.voidsetModuleId(String moduleId)Set the module id.voidsetResult(org.forgerock.audit.events.AuthenticationAuditEventBuilder.Status result)Set the result.Map<String,Object>toMap()Get thisAuthenticationAuditEntryas aMap.
-
-
-
Constructor Detail
-
AuthenticationAuditEntry
public AuthenticationAuditEntry()
Create an instance ofAuthenticationAuditEntry.
-
-
Method Detail
-
getModuleId
public String getModuleId()
Get the module id.- Returns:
- The module id.
-
getResult
public org.forgerock.audit.events.AuthenticationAuditEventBuilder.Status getResult()
Get the result.- Returns:
- The result.
-
getInfo
public Map<String,String> getInfo()
Get the info values.- Returns:
- The
Mapof all info values.
-
setModuleId
public void setModuleId(String moduleId)
Set the module id.- Parameters:
moduleId- The module id.
-
setResult
public void setResult(org.forgerock.audit.events.AuthenticationAuditEventBuilder.Status result)
Set the result.- Parameters:
result- The result.
-
addInfo
public void addInfo(AuditConstants.EntriesInfoFieldKey key, String value)
Add an info value.- Parameters:
key- The info entry key.value- The value of the info entry.
-
toMap
public Map<String,Object> toMap()
Get thisAuthenticationAuditEntryas aMap.- Returns:
- The
Maprepresentation.
-
-