1 package org.apache.fulcrum.jce.crypto;
2
3 /*
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License. You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied. See the License for the
18 * specific language governing permissions and limitations
19 * under the License.
20 */
21
22
23 /**
24 * CryptoParameters used for encryption/decrytpion.
25 *
26 * @author <a href="mailto:siegfried.goeschl@it20one.at">Siegfried Goeschl</a>
27 */
28
29 public interface CryptoParameters
30 {
31 /** Parameter for PBEParameterSpec */
32 int COUNT = 20;
33
34 /**
35 * The algorithm being used
36 *
37 * <ul>
38 * <li>for SunJCE 1.22 (JDK 1.3) : PBEWithMD5AndDES</li>
39 * <li>for SunJCE 1.42 (JDK 1.4) : PBEWithMD5AndDES, PBEWithMD5AndTripleDES</li>
40 * </ul>
41 */
42 String ALGORITHM = "PBEWithMD5AndDES";
43
44 /**
45 * The JCE provider name known to work. If the value
46 * is set to null an appropriate provider will be
47 * used.
48 *
49 * <ul>
50 * <li>SunJCE<li>
51 * <li>BC (Bouncy Castle Provider)<li>
52 * </ul>
53 */
54 String PROVIDERNAME = null;
55
56 /** The password salt */
57 byte[] SALT = {
58 (byte)0xc7, (byte)0x73, (byte)0x21, (byte)0x8c,
59 (byte)0x7e, (byte)0xc8, (byte)0xee, (byte)0x99
60 };
61 }