mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-22 16:41:46 +03:00
[FIX] Deprecation warning
This commit is contained in:
parent
d9a8e161f1
commit
7d8975041f
2 changed files with 3 additions and 3 deletions
|
@ -72,7 +72,7 @@ public static void main(String[] args) throws Exception {
|
|||
{
|
||||
LauncherTrustManager.CheckClassResult result = certificateManager.checkClass(LaunchServer.class);
|
||||
if (result.type == LauncherTrustManager.CheckClassResultType.SUCCESS) {
|
||||
logger.info("LaunchServer signed by {}", result.endCertificate.getSubjectDN().getName());
|
||||
logger.info("LaunchServer signed by {}", result.endCertificate.getSubjectX500Principal().getName());
|
||||
} else if (result.type == LauncherTrustManager.CheckClassResultType.NOT_SIGNED) {
|
||||
// None
|
||||
} else {
|
||||
|
|
|
@ -47,11 +47,11 @@ public void invoke(String... args) {
|
|||
private void printCheckStatusInfo(LauncherTrustManager.CheckClassResult checkStatus) {
|
||||
if (checkStatus != null && checkStatus.endCertificate != null) {
|
||||
X509Certificate cert = checkStatus.endCertificate;
|
||||
logger.info("[MODULE CERT] Module signer: {}", cert.getSubjectDN().getName());
|
||||
logger.info("[MODULE CERT] Module signer: {}", cert.getSubjectX500Principal().getName());
|
||||
}
|
||||
if (checkStatus != null && checkStatus.rootCertificate != null) {
|
||||
X509Certificate cert = checkStatus.rootCertificate;
|
||||
logger.info("[MODULE CERT] Module signer CA: {}", cert.getSubjectDN().getName());
|
||||
logger.info("[MODULE CERT] Module signer CA: {}", cert.getSubjectX500Principal().getName());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue