KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > crypto > spec > PBEParameterSpec


1 /*
2  * @(#)PBEParameterSpec.java 1.7 04/06/03
3  *
4  * Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7   
8 /*
9  * NOTE:
10  * Because of various external restrictions (i.e. US export
11  * regulations, etc.), the actual source code can not be provided
12  * at this time. This file represents the skeleton of the source
13  * file, so that javadocs of the API can be created.
14  */

15
16 package javax.crypto.spec;
17
18 import java.math.BigInteger;
19 import java.security.spec.AlgorithmParameterSpec;
20
21 /**
22  * This class specifies the set of parameters used with password-based
23  * encryption (PBE), as defined in the
24  * <a HREF="http://www.ietf.org/rfc/rfc2898.txt">PKCS #5</a>
25  * standard.
26  *
27  * @author Jan Luehe
28  *
29  * @version 1.16, 06/03/04
30  * @since 1.4
31  */

32 public class PBEParameterSpec implements AlgorithmParameterSpec
33 {
34
35     /**
36      * Constructs a parameter set for password-based encryption as defined in
37      * the PKCS #5 standard.
38      *
39      * @param salt the salt. The contents of <code>salt</code> are copied
40      * to protect against subsequent modification.
41      * @param iterationCount the iteration count.
42      * @exception NullPointerException if <code>salt</code> is null.
43      */

44     public PBEParameterSpec(byte[] salt, int iterationCount) { }
45
46     /**
47      * Returns the salt.
48      *
49      * @return the salt. Returns a new array
50      * each time this method is called.
51      */

52     public byte[] getSalt() {
53         return null;
54     }
55
56     /**
57      * Returns the iteration count.
58      *
59      * @return the iteration count
60      */

61     public int getIterationCount() {
62         return 0;
63     }
64 }
65
Popular Tags