Class AdDirSyncDecorator

    • Constructor Detail

      • AdDirSyncDecorator

        public AdDirSyncDecorator​(LdapApiService codec)
        Creates a new instance of AdDirSyncControlCodec.
        Parameters:
        codec - The LDAP Service to use
      • AdDirSyncDecorator

        public AdDirSyncDecorator​(LdapApiService codec,
                                  AdDirSync control)
        Creates a new instance of AdDirSyncDecorator.
        Parameters:
        codec - The LDAP Service to use
        control - The control to be decorated
    • Method Detail

      • getFlags

        public Set<AdDirSyncFlaggetFlags()
        Specified by:
        getFlags in interface AdDirSync
        Returns:
        The flags returned by the server. Zero or more of :
        • LDAP_DIRSYNC_OBJECT_SECURITY (0x0001)
        • LDAP_DIRSYNC_ANCESTORS_FIRST_ORDER (0x0800)
        • LDAP_DIRSYNC_PUBLIC_DATA_ONLY (0x2000)(
        • LDAP_DIRSYNC_INCREMENTAL_VALUES (0x7FFFFFFF)
      • getCookie

        public byte[] getCookie()
        Specified by:
        getCookie in interface AdDirSync
        Returns:
        The cookie used while processing the successive DirSync operations
      • setCookie

        public void setCookie​(byte[] cookie)
        Specified by:
        setCookie in interface AdDirSync
        Parameters:
        cookie - The cookie to send to the server. It's the value found in the response control. Should be null for the first control.
      • computeLength

        public int computeLength()
        Compute the AdDirSync length. We use the client side control.
         0x30 L1
         |
         +--> 0x02 0x0(1-4) nnn  (flags)
         +--> 0x02 0x0(1-4) nnn  (maxReturnLength)
         +--> 0x04 L2 xkcd!!!...     (cookie)
         
        Specified by:
        computeLength in interface Asn1Object
        Returns:
        The object's computed length