diff options
author | Endi S. Dewata <edewata@redhat.com> | 2017-01-21 01:16:35 +0100 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2017-01-21 02:50:04 +0100 |
commit | 08b234681c3efab382c5e407945b6e97b406c910 (patch) | |
tree | 7cf12683ed34f86cade11f202fefd60f2c9ed837 /base/ca/src | |
parent | cb839206d6c1d562e2e4385f6822c7934e9455c6 (diff) | |
download | pki-08b234681c3efab382c5e407945b6e97b406c910.tar.gz pki-08b234681c3efab382c5e407945b6e97b406c910.tar.xz pki-08b234681c3efab382c5e407945b6e97b406c910.zip |
Refactored Constants.PR_INTERNAL_TOKEN.
The Constants.PR_INTERNAL_TOKEN has been replaced with
CryptoUtil.INTERNAL_TOKEN_NAME since they are identical.
https://fedorahosted.org/pki/ticket/2556
Diffstat (limited to 'base/ca/src')
-rw-r--r-- | base/ca/src/com/netscape/ca/SigningUnit.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/ca/src/com/netscape/ca/SigningUnit.java b/base/ca/src/com/netscape/ca/SigningUnit.java index 405f20c06..e711f491e 100644 --- a/base/ca/src/com/netscape/ca/SigningUnit.java +++ b/base/ca/src/com/netscape/ca/SigningUnit.java @@ -41,10 +41,10 @@ import com.netscape.certsrv.base.ISubsystem; import com.netscape.certsrv.ca.CAMissingCertException; import com.netscape.certsrv.ca.CAMissingKeyException; import com.netscape.certsrv.ca.ECAException; -import com.netscape.certsrv.common.Constants; import com.netscape.certsrv.logging.ILogger; import com.netscape.certsrv.security.ISigningUnit; import com.netscape.cmscore.security.JssSubsystem; +import com.netscape.cmsutil.crypto.CryptoUtil; import com.netscape.cmsutil.util.Cert; import netscape.security.x509.AlgorithmId; @@ -151,7 +151,7 @@ public final class SigningUnit implements ISigningUnit { } tokenname = config.getString(PROP_TOKEN_NAME); - if (tokenname.equalsIgnoreCase(Constants.PR_INTERNAL_TOKEN) || + if (tokenname.equalsIgnoreCase(CryptoUtil.INTERNAL_TOKEN_NAME) || tokenname.equalsIgnoreCase("Internal Key Storage Token")) { mToken = mManager.getInternalKeyStorageToken(); setNewNickName(mNickname); |