From 15e0a8e1163bb0334468c0f8c73b12f15f98442e Mon Sep 17 00:00:00 2001 From: "nicolson%netscape.com" Date: Wed, 30 Jan 2002 20:38:53 +0000 Subject: [PATCH] Change default token from InternalCryptoToken to InternalKeyStorageToken. --- .../org/mozilla/jss/manage/CryptoManager.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/security/jss/org/mozilla/jss/manage/CryptoManager.java b/security/jss/org/mozilla/jss/manage/CryptoManager.java index 0f625fa81dbc..624c45265733 100644 --- a/security/jss/org/mozilla/jss/manage/CryptoManager.java +++ b/security/jss/org/mozilla/jss/manage/CryptoManager.java @@ -51,7 +51,7 @@ import org.mozilla.jss.CRLImportException; * Initialization is done with static methods, and must be done before * an instance can be created. All other operations are done with instance * methods. - * @version $Revision: 1.11 $ $Date: 2002/01/24 01:24:01 $ + * @version $Revision: 1.12 $ $Date: 2002/01/30 20:38:53 $ */ public final class CryptoManager implements TokenSupplier { @@ -1278,12 +1278,12 @@ public final class CryptoManager implements TokenSupplier * be used when JSS is called through the JCA interface, which has * no means of specifying which token to use. * - *

If no token is set, the InternalCryptoToken will be used. Setting + *

If no token is set, the InternalKeyStorageToken will be used. Setting * this thread's token to null will also cause the - * InternalCryptoToken to be used. + * InternalKeyStorageToken to be used. * * @param The token to use for crypto operations. Specifying null - * will cause the InternalCryptoToken to be used. + * will cause the InternalKeyStorageToken to be used. */ public void setThreadToken(CryptoToken token) { if( token != null ) { @@ -1298,18 +1298,18 @@ public final class CryptoManager implements TokenSupplier * be used when JSS is called through the JCA interface, which has * no means of specifying which token to use. * - *

If no token is set, the InternalCryptoToken will be used. Setting + *

If no token is set, the InternalKeyStorageToken will be used. Setting * this thread's token to null will also cause the - * InternalCryptoToken to be used. + * InternalKeyStorageToken to be used. * * @return The default token for this thread. If it has not been specified, - * it will be the InternalCryptoToken. + * it will be the InternalKeyStorageToken. */ public CryptoToken getThreadToken() { CryptoToken tok = (CryptoToken) perThreadTokenTable.get(Thread.currentThread()); if( tok == null ) { - tok = getInternalCryptoToken(); + tok = getInternalKeyStorageToken(); } return tok; }