what-the-bank/sources/org/bouncycastle/jcajce/PKCS12StoreParameter.java

43 lines
1.4 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package org.bouncycastle.jcajce;
import java.io.OutputStream;
import java.security.KeyStore;
/* loaded from: classes6.dex */
public class PKCS12StoreParameter implements KeyStore.LoadStoreParameter {
private final boolean forDEREncoding;
private final OutputStream out;
private final KeyStore.ProtectionParameter protectionParameter;
public boolean isForDEREncoding() {
return this.forDEREncoding;
}
@Override // java.security.KeyStore.LoadStoreParameter
public KeyStore.ProtectionParameter getProtectionParameter() {
return this.protectionParameter;
}
public OutputStream getOutputStream() {
return this.out;
}
public PKCS12StoreParameter(OutputStream outputStream, char[] cArr, boolean z) {
this(outputStream, new KeyStore.PasswordProtection(cArr), z);
}
public PKCS12StoreParameter(OutputStream outputStream, char[] cArr) {
this(outputStream, cArr, false);
}
public PKCS12StoreParameter(OutputStream outputStream, KeyStore.ProtectionParameter protectionParameter, boolean z) {
this.out = outputStream;
this.protectionParameter = protectionParameter;
this.forDEREncoding = z;
}
public PKCS12StoreParameter(OutputStream outputStream, KeyStore.ProtectionParameter protectionParameter) {
this(outputStream, protectionParameter, false);
}
}