Package org.forgerock.openig.fapi.audit
Class FapiAuditContext
java.lang.Object
org.forgerock.services.context.AbstractContext
org.forgerock.openig.fapi.audit.FapiAuditContext
- All Implemented Interfaces:
Context
A context for audit information about FAPI request.
-
Field Summary
Fields inherited from class org.forgerock.services.context.AbstractContext
data
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddContextualInfo
(String key, Object value) Add additional custom key and value to the contextual information.Gets theApiClient
or empty ifnull
.Returns map of additional custom contextual information about a request.Returns the interaction id or empty.setApiClient
(ApiClient apiClient) Sets theApiClient
which must be non-null.setInteractionId
(String interactionId) Sets the interaction id of request which must be non-null.Methods inherited from class org.forgerock.services.context.AbstractContext
as, asContext, containsContext, containsContext, get, getContext, getContextName, getId, getParent, getRootId, isRootContext, toJsonValue, toString
-
Constructor Details
-
FapiAuditContext
Create an emptyFapiAuditContext
.- Parameters:
parent
- the parentContext
.
-
-
Method Details
-
getInteractionId
Returns the interaction id or empty.- Returns:
- the interaction id or empty
-
setInteractionId
Sets the interaction id of request which must be non-null.- Parameters:
interactionId
- The interaction id of request- Returns:
- the
ApiClientFapiContext
instance
-
getApiClient
Gets theApiClient
or empty ifnull
.- Returns:
- the
ApiClient
or empty ifnull
-
setApiClient
Sets theApiClient
which must be non-null.- Parameters:
apiClient
- TheApiClient
built from request- Returns:
- the
ApiClientFapiContext
instance
-
getContextualInfo
Returns map of additional custom contextual information about a request.- Returns:
- map of additional custom contextual information about a request
-
addContextualInfo
Add additional custom key and value to the contextual information.- Parameters:
key
- the key of the custom informationvalue
- the value of the custom information- Returns:
FapiAuditFilter
-