Class SyncReplCookie

java.lang.Object
org.ldaptive.control.util.SyncReplCookie

public class SyncReplCookie extends Object
Class for parsing a sync repl cookie. See https://www.openldap.org/doc/admin23/syncrepl.html and https://www.openldap.org/faq/data/cache/1145.html
  • Field Details

  • Constructor Details

    • SyncReplCookie

      public SyncReplCookie(String cookie)
      Creates a new sync repl cookie.
      Parameters:
      cookie - to parse
  • Method Details

    • getRid

      public String getRid()
      Returns the RID.
      Returns:
      cookie RID
    • getCsn

      public SyncReplCookie.CSN getCsn()
      Returns the CSN.
      Returns:
      cookie CSN
    • parseCookie

      private static Map<String,String> parseCookie(String cookie)
      Parses the name/value pairs in the supplied cookie.
      Parameters:
      cookie - to parse
      Returns:
      map of name/value pairs