public static LdapProperties ldapProperties ( final String host , final int port , final List < String > baseDn , final String roleBaseDn , final String rdnIdentifier , final List < String > prefix , final EncryptionType encryptionType , final String ... whitelistedPaths ) { final LdapProperties ldap = new LdapProperties ( ) ; ldap . setEnabled ( true ) ; ldap . setHost ( host ) ; ldap . setPort ( port ) ; ldap . setBaseDn ( baseDn ) ; ldap . setRoleBaseDn ( roleBaseDn ) ; ldap . setRdnIdentifier ( rdnIdentifier ) ; ldap . setPrefixes ( prefix ) ; ldap . setEncryptionType ( encryptionType ) ; ldap . setWhitelistedPaths ( asList ( whitelistedPaths ) ) ; return ldap ; }
Creates Ldap properties . Primarily used in tests .