KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejbca > util > passgen > AllPrintableCharPasswordGenerator


1 /*************************************************************************
2  * *
3  * EJBCA: The OpenSource Certificate Authority *
4  * *
5  * This software is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU Lesser General Public *
7  * License as published by the Free Software Foundation; either *
8  * version 2.1 of the License, or any later version. *
9  * *
10  * See terms of license at gnu.org. *
11  * *
12  *************************************************************************/

13  
14 package org.ejbca.util.passgen;
15
16 /**
17  * AllPrintablePasswordGenerator is a class generating random passwords containing all printable
18  * english characters.
19  *
20  * @version $Id: AllPrintableCharPasswordGenerator.java,v 1.1 2006/01/17 20:28:05 anatom Exp $
21  */

22 public class AllPrintableCharPasswordGenerator extends BasePasswordGenerator{
23     
24     private static final char[] USEDCHARS = {'1','2','3','4','5','6','7','8','9','0','+','!','#','$',
25                                                               '%','&','/','(',')','=','?','q','Q','w','W','e','E','r',
26                                                               'R','t','T','y','Y','u','U','i','I','o','O','p','P','*','a',
27                                                               'A','s','S','d','D','f','F','g','G','h','H','j','J','k','K',
28                                                               'l','L','z','Z','x','X','c','C','v','V','b','B','n','N','m',
29                                                               'M'};
30         
31     public AllPrintableCharPasswordGenerator(){
32         super(USEDCHARS);
33     }
34       
35 }
36
Popular Tags