what-the-bank/sources/org/bouncycastle/jce/provider/JDKPKCS12StoreParameter.java

41 lines
1.1 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package org.bouncycastle.jce.provider;
import java.io.OutputStream;
import java.security.KeyStore;
/* loaded from: classes6.dex */
public class JDKPKCS12StoreParameter implements KeyStore.LoadStoreParameter {
private OutputStream outputStream;
private KeyStore.ProtectionParameter protectionParameter;
private boolean useDEREncoding;
public void setUseDEREncoding(boolean z) {
this.useDEREncoding = z;
}
public void setProtectionParameter(KeyStore.ProtectionParameter protectionParameter) {
this.protectionParameter = protectionParameter;
}
public void setPassword(char[] cArr) {
this.protectionParameter = new KeyStore.PasswordProtection(cArr);
}
public void setOutputStream(OutputStream outputStream) {
this.outputStream = outputStream;
}
public boolean isUseDEREncoding() {
return this.useDEREncoding;
}
@Override // java.security.KeyStore.LoadStoreParameter
public KeyStore.ProtectionParameter getProtectionParameter() {
return this.protectionParameter;
}
public OutputStream getOutputStream() {
return this.outputStream;
}
}