32 lines
1.0 KiB
Java
32 lines
1.0 KiB
Java
|
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;
|
||
|
}
|
||
|
}
|
||
|
}
|