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 theApiClientor empty ifnull.Returns map of additional custom contextual information about a request.Returns the interaction id or empty.setApiClient(ApiClient apiClient) Sets theApiClientwhich 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
ApiClientFapiContextinstance
-
getApiClient
Gets theApiClientor empty ifnull.- Returns:
- the
ApiClientor empty ifnull
-
setApiClient
Sets theApiClientwhich must be non-null.- Parameters:
apiClient- TheApiClientbuilt from request- Returns:
- the
ApiClientFapiContextinstance
-
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
-