diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2012-02-15 15:01:42 -0600 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2012-02-23 21:14:28 -0600 |
commit | 970e3667eede41e72bb5a4cadf1d056ff526d944 (patch) | |
tree | 4bd18490efeb4245ff739a9c1558520b25a8f992 /pki/base/ca | |
parent | 34496a33fbbee462f67410e2ee54a7986b3aedae (diff) | |
download | pki-970e3667eede41e72bb5a4cadf1d056ff526d944.tar.gz pki-970e3667eede41e72bb5a4cadf1d056ff526d944.tar.xz pki-970e3667eede41e72bb5a4cadf1d056ff526d944.zip |
Consolidated BtoA/AtoB invocations.
The OSUtil's BtoA() and AtoB() have been replaced with wrapper
methods in com.netscape.cmsutil.util.Utils to simplify transition
into Base64 codec from Apache Commons library.
Ticket #90
Diffstat (limited to 'pki/base/ca')
-rw-r--r-- | pki/base/ca/src/com/netscape/ca/CAService.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pki/base/ca/src/com/netscape/ca/CAService.java b/pki/base/ca/src/com/netscape/ca/CAService.java index d8faa8b34..88c9dfb8d 100644 --- a/pki/base/ca/src/com/netscape/ca/CAService.java +++ b/pki/base/ca/src/com/netscape/ca/CAService.java @@ -91,6 +91,7 @@ import com.netscape.cmscore.dbs.CertRecord; import com.netscape.cmscore.dbs.CertificateRepository; import com.netscape.cmscore.dbs.RevocationInfo; import com.netscape.cmscore.util.Debug; +import com.netscape.cmsutil.util.Utils; /** * Request Service for CertificateAuthority. @@ -1675,7 +1676,7 @@ class serviceCheckChallenge implements IServant { private String hashPassword(String pwd) { String salt = "lala123"; byte[] pwdDigest = mSHADigest.digest((salt + pwd).getBytes()); - String b64E = com.netscape.osutil.OSUtil.BtoA(pwdDigest); + String b64E = Utils.base64encode(pwdDigest); return "{SHA}" + b64E; } |