mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8218553: Enhance keystore load debug output
Reviewed-by: weijun
This commit is contained in:
parent
208c58c862
commit
63663b64d1
6 changed files with 52 additions and 24 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -102,6 +102,8 @@ public final class KeychainStore extends KeyStoreSpi {
|
|||
private static final int iterationCount = 1024;
|
||||
private static final int SALT_LEN = 20;
|
||||
|
||||
private static final Debug debug = Debug.getInstance("keystore");
|
||||
|
||||
static {
|
||||
AccessController.doPrivileged(
|
||||
new PrivilegedAction<Void>() {
|
||||
|
@ -773,6 +775,10 @@ public final class KeychainStore extends KeyStoreSpi {
|
|||
|
||||
entries.clear();
|
||||
_scanKeychain();
|
||||
if (debug != null) {
|
||||
debug.println("KeychainStore load entry count: " +
|
||||
entries.size());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue