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