Class CookieExtractor

java.lang.Object
org.pac4j.http.credentials.extractor.CookieExtractor
All Implemented Interfaces:
org.pac4j.core.credentials.extractor.CredentialsExtractor

public class CookieExtractor extends Object implements org.pac4j.core.credentials.extractor.CredentialsExtractor
Extracts a cookie value from the request context.
Since:
1.8.0
Author:
Misagh Moayyed
  • Constructor Summary

    Constructors
    Constructor
    Description
    CookieExtractor(String cookieName)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<org.pac4j.core.credentials.Credentials>
    extract(org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore, org.pac4j.core.profile.factory.ProfileManagerFactory profileManagerFactory)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CookieExtractor

      public CookieExtractor(String cookieName)
  • Method Details

    • extract

      public Optional<org.pac4j.core.credentials.Credentials> extract(org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore, org.pac4j.core.profile.factory.ProfileManagerFactory profileManagerFactory)
      Specified by:
      extract in interface org.pac4j.core.credentials.extractor.CredentialsExtractor