View Javadoc
1   /*
2    * Copyright (C) 2020-2023 Dipl.-Inform. Kai Hofmann. All rights reserved!
3    */
4   package de.powerstat.validation.values.strategies;
5   
6   
7   /**
8    * Password default validation strategy.
9    */
10  public final class PasswordDefaultStrategy extends PasswordConfigurableStrategy
11   {
12    /**
13     * Cache for singleton.
14     */
15    private static final PasswordDefaultStrategy CACHE = new PasswordDefaultStrategy();
16  
17  
18    /**
19     * Default Constructor.
20     */
21    private PasswordDefaultStrategy()
22     {
23      super(8, 254, "^[!§$%&/()=?öäüÖÄÜ,.:;_@0-9a-zA-Z-]+$", 0, 1, 0, 0, 0, 3); //$NON-NLS-1$
24     }
25  
26  
27    /**
28     * Password validation strategy factory.
29     *
30     * @return PasswordStrategy object
31     */
32    public static IPasswordStrategy of()
33     {
34      return PasswordDefaultStrategy.CACHE;
35     }
36  
37   }