Class PsLinkedin

  • All Implemented Interfaces:
    Pass

    public final class PsLinkedin
    extends Object
    implements Pass
    Linkedin OAuth landing/callback page.

    The class is immutable and thread-safe.

    Since:
    0.11.3
    • Constructor Detail

      • PsLinkedin

        public PsLinkedin​(String lapp,
                          String lkey)
        Ctor.
        Parameters:
        lapp - Linkedin app
        lkey - Linkedin key
      • PsLinkedin

        public PsLinkedin​(Href thref,
                          Href ahref,
                          String lapp,
                          String lkey)
        Ctor with custom hrefs for test purposes.
        Parameters:
        thref - Linkedin token href
        ahref - Linkedin api href
        lapp - Linkedin app name
        lkey - Linkedin key
    • Method Detail

      • enter

        public Opt<Identity> enter​(Request request)
                            throws IOException
        Description copied from interface: Pass
        Authenticate the user by the request.
        Specified by:
        enter in interface Pass
        Parameters:
        request - The request
        Returns:
        Identity of the user found
        Throws:
        IOException
      • exit

        public Response exit​(Response response,
                             Identity identity)
        Description copied from interface: Pass
        Wrap the response with the user.
        Specified by:
        exit in interface Pass
        Parameters:
        response - Response
        identity - Identity
        Returns:
        New response