Class GetPropertyActionHandler

  • All Implemented Interfaces:
    ActionHandler

    public class GetPropertyActionHandler
    extends Object
    implements ActionHandler
    Handles 'getProperty' actions. If a field is requested, return only that field. If no field is specified, return the key/value of all whitelisted fields. REQUEST: { 'properties' : [ 'property1', 'property2'] } RESPONSE: { 'property1' : 'value1', 'property2' : 'value2' }
    • Constructor Detail

      • GetPropertyActionHandler

        public GetPropertyActionHandler​(SessionPropertyWhitelist sessionPropertyWhitelist,
                                        SessionResourceUtil sessionResourceUtil)
        Constructs a GetPropertyActionHandler instance
        Parameters:
        sessionPropertyWhitelist - An instance of the SessionPropertyWhitelist.
        sessionResourceUtil - An instance of the session resource manager.
    • Method Detail

      • handle

        public org.forgerock.util.promise.Promise<org.forgerock.json.resource.ActionResponse,​org.forgerock.json.resource.ResourceException> handle​(String tokenId,
                                                                                                                                                         org.forgerock.services.context.Context context,
                                                                                                                                                         org.forgerock.json.resource.ActionRequest request)
        Specified by:
        handle in interface ActionHandler