mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
34 lines
1,008 B
Java
34 lines
1,008 B
Java
![]() |
package io.sentry.transport;
|
||
|
|
||
|
import io.sentry.util.Objects;
|
||
|
import java.net.Authenticator;
|
||
|
import java.net.PasswordAuthentication;
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
final class ProxyAuthenticator extends Authenticator {
|
||
|
private final String password;
|
||
|
private final String user;
|
||
|
|
||
|
String getPassword() {
|
||
|
return this.password;
|
||
|
}
|
||
|
|
||
|
String getUser() {
|
||
|
return this.user;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public ProxyAuthenticator(String str, String str2) {
|
||
|
this.user = (String) Objects.requireNonNull(str, "user is required");
|
||
|
this.password = (String) Objects.requireNonNull(str2, "password is required");
|
||
|
}
|
||
|
|
||
|
@Override // java.net.Authenticator
|
||
|
protected PasswordAuthentication getPasswordAuthentication() {
|
||
|
if (getRequestorType() == Authenticator.RequestorType.PROXY) {
|
||
|
return new PasswordAuthentication(this.user, this.password.toCharArray());
|
||
|
}
|
||
|
return null;
|
||
|
}
|
||
|
}
|