Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for addPassword (0.07 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/PdfExtractorTest.java

            assertNull(pdfExtractor.getPassword(params));
        }
    
        public void test_getPassword() {
            String url;
            String resourceName;
            pdfExtractor.addPassword(".*hoge1.pdf", "password");
            pdfExtractor.addPassword("fuga.pdf", "PASSWORD");
            HashMap<String, String> params = new HashMap<>();
    
            url = null;
            resourceName = null;
            params.put(ExtractData.URL, url);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/PasswordBasedExtractor.java

        protected Map<Pattern, String> passwordMap = new HashMap<>();
    
        private final Map<String, List<Pair<Pattern, String>>> configPasswordMap = new ConcurrentHashMap<>();
    
        public void addPassword(final String regex, final String password) {
            passwordMap.put(Pattern.compile(regex), password);
        }
    
        protected String getPassword(final Map<String, String> params) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 3.7K bytes
    - Viewed (0)
Back to top