Class LDAPResultConverter


  • public class LDAPResultConverter
    extends Object
    • Constructor Detail

      • LDAPResultConverter

        public LDAPResultConverter()
    • Method Detail

      • convertToJSON

        public static com.alibaba.fastjson.JSONArray convertToJSON​(com.unboundid.ldap.sdk.LDAPConnection con,
                                                                   com.unboundid.ldap.sdk.SearchResult result)
                                                            throws com.alibaba.fastjson.JSONException,
                                                                   com.unboundid.ldap.sdk.LDAPException
        Throws:
        com.alibaba.fastjson.JSONException
        com.unboundid.ldap.sdk.LDAPException
      • convertToJSON

        public static com.alibaba.fastjson.JSONObject convertToJSON​(com.unboundid.ldap.sdk.LDAPConnection con,
                                                                    com.unboundid.ldap.sdk.SearchResultEntry entry)
                                                             throws com.alibaba.fastjson.JSONException,
                                                                    com.unboundid.ldap.sdk.LDAPException
        Throws:
        com.alibaba.fastjson.JSONException
        com.unboundid.ldap.sdk.LDAPException
      • getJavaType

        public static Class<?> getJavaType​(com.unboundid.ldap.sdk.schema.Schema schema,
                                           com.unboundid.ldap.sdk.Attribute att)
      • convertToBenutzer

        public static LDAPBenutzer convertToBenutzer​(com.unboundid.ldap.sdk.SearchResultEntry entry)
      • fillProfile

        public static void fillProfile​(org.pac4j.core.profile.CommonProfile profile,
                                       com.unboundid.ldap.sdk.SearchResultEntry entry)