what-the-bank/sources/org/bouncycastle/util/Properties.java

32 lines
1.0 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package org.bouncycastle.util;
import java.security.AccessControlException;
import java.security.AccessController;
import java.security.PrivilegedAction;
/* loaded from: classes6.dex */
public class Properties {
public static boolean isOverrideSet(String str) {
try {
return "true".equals(AccessController.doPrivileged(new PrivilegedAction(str) { // from class: org.bouncycastle.util.Properties.1
final String val$propertyName;
@Override // java.security.PrivilegedAction
public final Object run() {
String property = System.getProperty(this.val$propertyName);
if (property == null) {
return null;
}
return Strings.toLowerCase(property);
}
{
this.val$propertyName = str;
}
}));
} catch (AccessControlException unused) {
return false;
}
}
}