Class LTPAIdentityHandler

  • All Implemented Interfaces:
    DocumentedResourceHandler, IResourceHandler

    public class LTPAIdentityHandler
    extends AbstractResourceHandler
    This class provides RESTful services to login and logout a register user using LTPAToken. It calls Person noun to perform the services.
    • Field Detail


        public static final java.lang.String COPYRIGHT
        IBM Copyright notice field.
        See Also:
        Constant Field Values

        public static final java.lang.String RESOURCE_NAME
        The Constant RESOURCE_NAME.
        See Also:
        Constant Field Values

        public static final java.lang.String FORMAT_GROUP_NAME
        The constant FORMAT_GROUP_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • LTPAIdentityHandler

        public LTPAIdentityHandler()
    • Method Detail

      • getResourceName

        public java.lang.String getResourceName()
        Description copied from interface: IResourceHandler
        This method returns the name of the resource used primarily to determine the representation of the resource. This class can be overridden to change the name of the resource and therefore the representation, while keeping all the methods in this class.
        the resource name
      • authenticate

        public authenticate(@PathParam(value="storeId")
                                                                                                                                                                                                                             java.lang.String storeId,
                                                                                                                                                                                                                             java.lang.String responseFormat)

        Authenticate a user using LTPA token.

        storeId - store id
        responseFormat - response format
        Response containing a Map.
      • logout

        public logout(@PathParam(value="storeId")
                                                                              java.lang.String storeId,
                                                                              java.lang.String responseFormat)
        Logout the user. The authentication tokens obtained during login must be sent back with the request header.
        storeId - the store id
        responseFormat - the response format
        the response