diff options
author | Endi S. Dewata <edewata@redhat.com> | 2017-01-24 16:14:42 +0100 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2017-01-26 00:54:53 +0100 |
commit | 97ac6024c813621856b3cbfc8207416a46855108 (patch) | |
tree | f98e71baabba7c35de7e71837c7d564f9999dab8 /base/server/cms/src/com/netscape/cms/servlet/csadmin | |
parent | 49dbe641d3f1fd8fe4d8c141a93b7533eea1b70f (diff) | |
download | pki-97ac6024c813621856b3cbfc8207416a46855108.tar.gz pki-97ac6024c813621856b3cbfc8207416a46855108.tar.xz pki-97ac6024c813621856b3cbfc8207416a46855108.zip |
Updated CryptoUtil.
The CryptoUtil has been modified to provide two separate methods
to obtain a token given the token name:
- getCryptoToken() returns crypto token
- getKeyStorageToken() returns key storage token
The getKeyStorageToken() was renamed from the existing
getTokenByName(). All codes using the old method have been updated
accordingly.
If the provided token name matches internal token name the methods
will return the corresponding internal crypto/key storage token.
The isInternalToken() was modified to check for empty string in
addition to the short and full name of the internal token.
https://fedorahosted.org/pki/ticket/2556
Diffstat (limited to 'base/server/cms/src/com/netscape/cms/servlet/csadmin')
-rw-r--r-- | base/server/cms/src/com/netscape/cms/servlet/csadmin/ConfigurationUtils.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/server/cms/src/com/netscape/cms/servlet/csadmin/ConfigurationUtils.java b/base/server/cms/src/com/netscape/cms/servlet/csadmin/ConfigurationUtils.java index 65bd371eb..105ae6ee9 100644 --- a/base/server/cms/src/com/netscape/cms/servlet/csadmin/ConfigurationUtils.java +++ b/base/server/cms/src/com/netscape/cms/servlet/csadmin/ConfigurationUtils.java @@ -3434,7 +3434,7 @@ public class ConfigurationUtils { NoSuchTokenException, TokenException { CryptoManager cm = CryptoManager.getInstance(); - CryptoToken tok = CryptoUtil.getTokenByName(tokenname); + CryptoToken tok = CryptoUtil.getKeyStorageToken(tokenname); CryptoStore store = tok.getCryptoStore(); String fullnickname = nickname; if (!tokenname.equals("") && |