1 package org.bouncycastle.jce.provider;
2 
3 import java.io.OutputStream;
4 import java.security.KeyStore;
5 import java.security.KeyStore.LoadStoreParameter;
6 import java.security.KeyStore.ProtectionParameter;
7 
8 /**
9  * @deprecated use org.bouncycastle.jcajce.config.PKCS12StoreParameter
10  */
11 public class JDKPKCS12StoreParameter implements LoadStoreParameter
12 {
13     private OutputStream outputStream;
14     private ProtectionParameter protectionParameter;
15     private boolean useDEREncoding;
16 
getOutputStream()17     public OutputStream getOutputStream()
18     {
19         return outputStream;
20     }
21 
getProtectionParameter()22     public ProtectionParameter getProtectionParameter()
23     {
24         return protectionParameter;
25     }
26 
isUseDEREncoding()27     public boolean isUseDEREncoding()
28     {
29         return useDEREncoding;
30     }
31 
setOutputStream(OutputStream outputStream)32     public void setOutputStream(OutputStream outputStream)
33     {
34         this.outputStream = outputStream;
35     }
36 
setPassword(char[] password)37     public void setPassword(char[] password)
38     {
39         this.protectionParameter = new KeyStore.PasswordProtection(password);
40     }
41 
setProtectionParameter(ProtectionParameter protectionParameter)42     public void setProtectionParameter(ProtectionParameter protectionParameter)
43     {
44         this.protectionParameter = protectionParameter;
45     }
46 
setUseDEREncoding(boolean useDEREncoding)47     public void setUseDEREncoding(boolean useDEREncoding)
48     {
49         this.useDEREncoding = useDEREncoding;
50     }
51 }
52