Class ConsentMappingCallback
java.lang.Object
org.forgerock.openam.authentication.callbacks.ConsentMappingCallback
- All Implemented Interfaces:
Serializable
,Callback
A callback to collect consent to share data with an external service declared by a mapping in IDM.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builder for ConsentMappingCallback. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Get a builder for constructing a new ConsentMappingCallback.Get the access level string that describes the scope of the data shared with the service declared by the mapping.Get the display name of the mapping.Get the list of fields from the user data that will be shared with the service declared by the mapping.getIcon()
Get the descriptor for an icon that can be displayed in the UI appropriate for the service declared by the mapping.Get the privacy and consent notice.getName()
Get the name of the mapping.Return whether this mapping must be consented.boolean
getValue()
Get the current state of the user's opt-in choice.setValue
(boolean optin) Set the state of the user's opt-in choice.
-
Method Details
-
getName
Get the name of the mapping. This should not be displayed to the user.- Returns:
- the mapping name
-
getDisplayName
Get the display name of the mapping. This should be a readable string describing the service with which user data will be shared.- Returns:
- the display name of the mapping.
-
getIcon
Get the descriptor for an icon that can be displayed in the UI appropriate for the service declared by the mapping.- Returns:
- icon descriptor for the mapping
-
getAccessLevel
Get the access level string that describes the scope of the data shared with the service declared by the mapping.- Returns:
- access level description
-
getFields
Get the list of fields from the user data that will be shared with the service declared by the mapping.- Returns:
- list of fields to be shared
-
getRequired
Return whether this mapping must be consented.- Returns:
- true iff this mapping must be consented
-
getValue
Get the current state of the user's opt-in choice.- Returns:
- the user's opt-in choice
-
getMessage
Get the privacy and consent notice.- Returns:
- the message
-
setValue
Set the state of the user's opt-in choice.- Parameters:
optin
- the user's choice- Returns:
- this callback
-
builder
Get a builder for constructing a new ConsentMappingCallback.- Returns:
- a new builder
-