Rabbit-R1/android (non root)/java/sources/org/webrtc/CryptoOptions.java
2024-05-21 17:08:36 -04:00

97 lines
2.8 KiB
Java

package org.webrtc;
/* loaded from: classes3.dex */
public final class CryptoOptions {
private final SFrame sframe;
private final Srtp srtp;
public SFrame getSFrame() {
return this.sframe;
}
public Srtp getSrtp() {
return this.srtp;
}
/* loaded from: classes3.dex */
public final class Srtp {
private final boolean enableAes128Sha1_32CryptoCipher;
private final boolean enableEncryptedRtpHeaderExtensions;
private final boolean enableGcmCryptoSuites;
public boolean getEnableAes128Sha1_32CryptoCipher() {
return this.enableAes128Sha1_32CryptoCipher;
}
public boolean getEnableEncryptedRtpHeaderExtensions() {
return this.enableEncryptedRtpHeaderExtensions;
}
public boolean getEnableGcmCryptoSuites() {
return this.enableGcmCryptoSuites;
}
private Srtp(boolean z, boolean z2, boolean z3) {
this.enableGcmCryptoSuites = z;
this.enableAes128Sha1_32CryptoCipher = z2;
this.enableEncryptedRtpHeaderExtensions = z3;
}
}
/* loaded from: classes3.dex */
public final class SFrame {
private final boolean requireFrameEncryption;
public boolean getRequireFrameEncryption() {
return this.requireFrameEncryption;
}
private SFrame(boolean z) {
this.requireFrameEncryption = z;
}
}
private CryptoOptions(boolean z, boolean z2, boolean z3, boolean z4) {
this.srtp = new Srtp(z, z2, z3);
this.sframe = new SFrame(z4);
}
public static Builder builder() {
return new Builder();
}
/* loaded from: classes3.dex */
public static class Builder {
private boolean enableAes128Sha1_32CryptoCipher;
private boolean enableEncryptedRtpHeaderExtensions;
private boolean enableGcmCryptoSuites;
private boolean requireFrameEncryption;
public Builder setEnableAes128Sha1_32CryptoCipher(boolean z) {
this.enableAes128Sha1_32CryptoCipher = z;
return this;
}
public Builder setEnableEncryptedRtpHeaderExtensions(boolean z) {
this.enableEncryptedRtpHeaderExtensions = z;
return this;
}
public Builder setEnableGcmCryptoSuites(boolean z) {
this.enableGcmCryptoSuites = z;
return this;
}
public Builder setRequireFrameEncryption(boolean z) {
this.requireFrameEncryption = z;
return this;
}
private Builder() {
}
public CryptoOptions createCryptoOptions() {
return new CryptoOptions(this.enableGcmCryptoSuites, this.enableAes128Sha1_32CryptoCipher, this.enableEncryptedRtpHeaderExtensions, this.requireFrameEncryption);
}
}
}