Convert com.netscape.jss package names to org.mozilla.jss.

The work was done by a script.


git-svn-id: svn://10.0.0.236/trunk@83837 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nicolson%netscape.com 2000-12-19 06:19:02 +00:00
parent 6733ab2562
commit f6a45e8925
286 changed files with 1161 additions and 1161 deletions

View File

@ -38,40 +38,40 @@
include manifest.mn
JNI_GEN += com.netscape.jss.ssl.SSLInputStream \
com.netscape.jss.ssl.SSLOutputStream \
com.netscape.jss.ssl.SSLSocketImpl \
com.netscape.jss.pkcs11.PrivateKeyProxy \
com.netscape.jss.pkcs11.PublicKeyProxy \
com.netscape.jss.CryptoManager \
com.netscape.jss.NSSInit \
com.netscape.jss.DatabaseCloser \
com.netscape.jss.crypto.Algorithm \
com.netscape.jss.crypto.EncryptionAlgorithm \
com.netscape.jss.crypto.PQGParams \
com.netscape.jss.pkcs11.PK11Token \
com.netscape.jss.pkcs11.CertProxy \
com.netscape.jss.pkcs11.CipherContextProxy \
com.netscape.jss.pkcs11.ModuleProxy \
com.netscape.jss.pkcs11.PK11RSAPublicKey \
com.netscape.jss.pkcs11.PK11DSAPublicKey \
com.netscape.jss.pkcs11.PK11KeyPairGenerator \
com.netscape.jss.pkcs11.PK11KeyGenerator \
com.netscape.jss.pkcs11.PK11Cert \
com.netscape.jss.pkcs11.PK11Cipher \
com.netscape.jss.pkcs11.PK11MessageDigest \
com.netscape.jss.pkcs11.PK11Module \
com.netscape.jss.pkcs11.PK11PrivKey \
com.netscape.jss.pkcs11.PK11PubKey \
com.netscape.jss.pkcs11.PK11SymKey \
com.netscape.jss.pkcs11.SymKeyProxy \
com.netscape.jss.pkcs11.SigContextProxy \
com.netscape.jss.pkcs11.PK11Signature \
com.netscape.jss.pkcs11.PK11Store \
com.netscape.jss.pkcs11.PK11KeyWrapper \
com.netscape.jss.util.Password \
com.netscape.jss.util.Debug \
com.netscape.jss.pkcs11.PK11SecureRandom \
JNI_GEN += org.mozilla.jss.ssl.SSLInputStream \
org.mozilla.jss.ssl.SSLOutputStream \
org.mozilla.jss.ssl.SSLSocketImpl \
org.mozilla.jss.pkcs11.PrivateKeyProxy \
org.mozilla.jss.pkcs11.PublicKeyProxy \
org.mozilla.jss.CryptoManager \
org.mozilla.jss.NSSInit \
org.mozilla.jss.DatabaseCloser \
org.mozilla.jss.crypto.Algorithm \
org.mozilla.jss.crypto.EncryptionAlgorithm \
org.mozilla.jss.crypto.PQGParams \
org.mozilla.jss.pkcs11.PK11Token \
org.mozilla.jss.pkcs11.CertProxy \
org.mozilla.jss.pkcs11.CipherContextProxy \
org.mozilla.jss.pkcs11.ModuleProxy \
org.mozilla.jss.pkcs11.PK11RSAPublicKey \
org.mozilla.jss.pkcs11.PK11DSAPublicKey \
org.mozilla.jss.pkcs11.PK11KeyPairGenerator \
org.mozilla.jss.pkcs11.PK11KeyGenerator \
org.mozilla.jss.pkcs11.PK11Cert \
org.mozilla.jss.pkcs11.PK11Cipher \
org.mozilla.jss.pkcs11.PK11MessageDigest \
org.mozilla.jss.pkcs11.PK11Module \
org.mozilla.jss.pkcs11.PK11PrivKey \
org.mozilla.jss.pkcs11.PK11PubKey \
org.mozilla.jss.pkcs11.PK11SymKey \
org.mozilla.jss.pkcs11.SymKeyProxy \
org.mozilla.jss.pkcs11.SigContextProxy \
org.mozilla.jss.pkcs11.PK11Signature \
org.mozilla.jss.pkcs11.PK11Store \
org.mozilla.jss.pkcs11.PK11KeyWrapper \
org.mozilla.jss.util.Password \
org.mozilla.jss.util.Debug \
org.mozilla.jss.pkcs11.PK11SecureRandom \
$(NULL)
#######################################################################

View File

@ -459,7 +459,7 @@ int main (int argc, char *argv[])
* Make sure the registry is empty
*/
nativeProxyClass = (*env)->FindClass(env,
"com/netscape/jss/util/NativeProxy");
"org/mozilla/jss/util/NativeProxy");
/* If it's NULL, don't worry, maybe they just aren't using the class */
(*env)->ExceptionClear(env);

View File

@ -62,10 +62,10 @@ in your <code>PATH</code> (on Windows), and put
<h2>Programming with JSS</h2>
Before the SSL classes can be used,
<a href="javadoc/com/netscape/jss/NSSInit.html#initialize(java.lang.String, java.lang.String, java.lang.String)">
<a href="javadoc/org/mozilla/jss/NSSInit.html#initialize(java.lang.String, java.lang.String, java.lang.String)">
<code>NSSInit.initialize</code></a> must be called to open the security
databases and initialize the random number generator.
<a href="javadoc/com/netscape/jss/NSSInit.html#setPasswordCallback(com.netscape.jss.util.PasswordCallback)"><code>
<a href="javadoc/org/mozilla/jss/NSSInit.html#setPasswordCallback(org.mozilla.jss.util.PasswordCallback)"><code>
NSSInit.setPasswordCallback</code></a> may be called to change the password
callback; the default is to prompt for passwords on the command line.
@ -85,9 +85,9 @@ it will ask for a password
for the "Internal Key Storage Token", which is the key database.
The password for the example <code>key3.db</code> file is "netscape".
</dl>
These classes are in the <code>com.netscape.jss.ssl</code> package.
These classes are in the <code>org.mozilla.jss.ssl</code> package.
The <code>.class</code> files must be put in the subdirectory
<code>com/netscape/jss/ssl</code> of a <code>CLASSPATH</code> entry
<code>org/mozilla/jss/ssl</code> of a <code>CLASSPATH</code> entry
in order to be located by the Java virtual machine.
<a href="javadoc/index.html"><h2>Javadoc for the JSS Classes</h2></a>

View File

@ -66,21 +66,21 @@ chdir("../dist/classes");
###############################################################################
$filelist =
'com/netscape/jss/ssl/*.class '.
'com/netscape/jss/crypto/AlreadyInitializedException.class '.
'com/netscape/jss/pkcs11/TokenCallbackInfo.class '.
'com/netscape/jss/NSSInit.class '.
'com/netscape/jss/CertDatabaseException.class '.
'com/netscape/jss/KeyDatabaseException.class '.
'com/netscape/jss/util/Assert.class '.
'com/netscape/jss/util/AssertionException.class '.
'com/netscape/jss/util/ConsolePasswordCallback.class '.
'com/netscape/jss/util/Debug.class '.
'com/netscape/jss/util/Password.class '.
'com/netscape/jss/util/PasswordCallback.class '.
'com/netscape/jss/util/PasswordCallback?GiveUpException.class '.
'com/netscape/jss/util/PasswordCallbackInfo.class '.
'com/netscape/jss/util/UTF8Converter.class';
'org/mozilla/jss/ssl/*.class '.
'org/mozilla/jss/crypto/AlreadyInitializedException.class '.
'org/mozilla/jss/pkcs11/TokenCallbackInfo.class '.
'org/mozilla/jss/NSSInit.class '.
'org/mozilla/jss/CertDatabaseException.class '.
'org/mozilla/jss/KeyDatabaseException.class '.
'org/mozilla/jss/util/Assert.class '.
'org/mozilla/jss/util/AssertionException.class '.
'org/mozilla/jss/util/ConsolePasswordCallback.class '.
'org/mozilla/jss/util/Debug.class '.
'org/mozilla/jss/util/Password.class '.
'org/mozilla/jss/util/PasswordCallback.class '.
'org/mozilla/jss/util/PasswordCallback?GiveUpException.class '.
'org/mozilla/jss/util/PasswordCallbackInfo.class '.
'org/mozilla/jss/util/UTF8Converter.class';
$load_library = "../$var{'PLATFORM'}/lib/";

View File

@ -35,5 +35,5 @@ CORE_DEPTH = ../..
MODULE = ninja
DIRS = netscape \
DIRS = mozilla \
$(NULL)

View File

@ -30,9 +30,9 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.asn1;
package org.mozilla.jss.asn1;
import com.netscape.jss.util.Assert;
import org.mozilla.jss.util.Assert;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
@ -85,7 +85,7 @@ public class ANY implements ASN1Value {
ASN1Header head = new ASN1Header(bis);
this.tag = head.getTag();
} catch(IOException e) {
throw new com.netscape.jss.util.AssertionException(
throw new org.mozilla.jss.util.AssertionException(
"IOException while creating ANY: "+e);
}
}

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.asn1;
package org.mozilla.jss.asn1;
import java.math.BigInteger;
import java.io.IOException;
@ -38,7 +38,7 @@ import java.io.InputStream;
import java.io.OutputStream;
import java.io.ByteArrayOutputStream;
import java.util.Vector;
import com.netscape.jss.util.Assert;
import org.mozilla.jss.util.Assert;
/**
* The portion of a BER encoding that precedes the contents octets. Consists

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.asn1;
package org.mozilla.jss.asn1;
import java.io.OutputStream;
import java.io.InputStream;

View File

@ -30,11 +30,11 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.asn1;
package org.mozilla.jss.asn1;
import java.io.*;
import com.netscape.jss.asn1.InvalidBERException;
import com.netscape.jss.util.Assert;
import org.mozilla.jss.asn1.InvalidBERException;
import org.mozilla.jss.util.Assert;
public class ASN1Util {

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.asn1;
package org.mozilla.jss.asn1;
import java.io.OutputStream;
import java.io.IOException;

View File

@ -30,9 +30,9 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.asn1;
package org.mozilla.jss.asn1;
import com.netscape.jss.util.Assert;
import org.mozilla.jss.util.Assert;
import java.math.BigInteger;
import java.io.IOException;
import java.io.InputStream;

View File

@ -30,11 +30,11 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.asn1;
package org.mozilla.jss.asn1;
import java.io.CharConversionException;
import java.io.UnsupportedEncodingException;
import com.netscape.jss.util.Assert;
import org.mozilla.jss.util.Assert;
/**
* The ASN.1 type <i>BMPString</i>. BMPStrings use the Unicode character set.

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.asn1;
package org.mozilla.jss.asn1;
import java.io.OutputStream;
import java.io.IOException;

View File

@ -30,13 +30,13 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.asn1;
package org.mozilla.jss.asn1;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Vector;
import com.netscape.jss.util.Assert;
import org.mozilla.jss.util.Assert;
/**
* Objects of this class are generated by CHOICE.Template.decode(). It is

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.asn1;
package org.mozilla.jss.asn1;
import java.io.CharConversionException;

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.asn1;
package org.mozilla.jss.asn1;
import java.io.CharConversionException;
import java.io.InputStream;

View File

@ -31,7 +31,7 @@
* GPL.
*/
package com.netscape.jss.asn1;
package org.mozilla.jss.asn1;
import java.io.*;

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.asn1;
package org.mozilla.jss.asn1;
import java.io.IOException;
import java.io.InputStream;

View File

@ -30,13 +30,13 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.asn1;
package org.mozilla.jss.asn1;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.ByteArrayOutputStream;
import com.netscape.jss.util.Assert;
import org.mozilla.jss.util.Assert;
/**
* An explicit tag.

View File

@ -31,7 +31,7 @@
* GPL.
*/
package com.netscape.jss.asn1;
package org.mozilla.jss.asn1;
/**
* An exception thrown when an optional field is not present.

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.asn1;
package org.mozilla.jss.asn1;
/**
* An enumerated type representing the forms of an ASN.1 value.

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.asn1;
package org.mozilla.jss.asn1;
import java.io.InputStream;
import java.io.OutputStream;
@ -38,7 +38,7 @@ import java.io.IOException;
import java.util.Calendar;
import java.util.Date;
import java.util.TimeZone;
import com.netscape.jss.util.Assert;
import org.mozilla.jss.util.Assert;
/**
* The ASN.1 type <code>GeneralizedTime</code>

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.asn1;
package org.mozilla.jss.asn1;
import java.io.CharConversionException;

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.asn1;
package org.mozilla.jss.asn1;
import java.io.IOException;
import java.io.OutputStream;

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.asn1;
package org.mozilla.jss.asn1;
/**
* An exception thrown when BER decoding fails.

View File

@ -75,5 +75,5 @@ include $(CORE_DEPTH)/coreconf/rules.mk
run:
$(DEBUG_CMD) /share/builds/components/jdk/1.2.2_05a/SunOS/jre/bin/java -classpath $(JAVA_HOME)/lib/classes.zip:$(SOURCE_CLASSES_DIR)_DBG com.netscape.jss.asn1.SEQUENCE /tmp/p10
$(DEBUG_CMD) /share/builds/components/jdk/1.2.2_05a/SunOS/jre/bin/java -classpath $(JAVA_HOME)/lib/classes.zip:$(SOURCE_CLASSES_DIR)_DBG org.mozilla.jss.asn1.SEQUENCE /tmp/p10

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.asn1;
package org.mozilla.jss.asn1;
import java.io.OutputStream;
import java.io.InputStream;

View File

@ -30,13 +30,13 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.asn1;
package org.mozilla.jss.asn1;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import com.netscape.jss.util.Assert;
import org.mozilla.jss.util.Assert;
import java.util.Vector;
import java.util.StringTokenizer;

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.asn1;
package org.mozilla.jss.asn1;
import java.io.InputStream;
import java.io.OutputStream;

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.asn1;
package org.mozilla.jss.asn1;
import java.io.CharConversionException;

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.asn1;
package org.mozilla.jss.asn1;
import java.io.InputStream;
import java.io.OutputStream;
@ -38,7 +38,7 @@ import java.io.IOException;
import java.io.FileInputStream;
import java.io.BufferedInputStream;
import java.util.Vector;
import com.netscape.jss.util.Assert;
import org.mozilla.jss.util.Assert;
import java.math.BigInteger;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;

View File

@ -30,14 +30,14 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.asn1;
package org.mozilla.jss.asn1;
import java.math.BigInteger;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Vector;
import com.netscape.jss.util.Assert;
import org.mozilla.jss.util.Assert;
import java.io.FileInputStream;
import java.io.BufferedInputStream;
import java.io.ByteArrayOutputStream;

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.asn1;
package org.mozilla.jss.asn1;
import java.math.BigInteger;

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.asn1;
package org.mozilla.jss.asn1;
import java.io.CharConversionException;

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.asn1;
package org.mozilla.jss.asn1;
import java.io.InputStream;
import java.io.OutputStream;
@ -38,7 +38,7 @@ import java.io.IOException;
import java.util.Calendar;
import java.util.Date;
import java.util.TimeZone;
import com.netscape.jss.util.Assert;
import org.mozilla.jss.util.Assert;
public abstract class TimeBase implements ASN1Value {

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.asn1;
package org.mozilla.jss.asn1;
import java.io.IOException;
import java.util.Date;

View File

@ -30,11 +30,11 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.asn1;
package org.mozilla.jss.asn1;
import java.io.CharConversionException;
import java.io.UnsupportedEncodingException;
import com.netscape.jss.util.Assert;
import org.mozilla.jss.util.Assert;
public class UTF8String extends CharacterString implements ASN1Value {

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.asn1;
package org.mozilla.jss.asn1;
import java.io.CharConversionException;
import java.io.CharArrayWriter;

View File

@ -37,7 +37,7 @@ MODULE = ninja
NS_USE_JDK = 1
PACKAGE = com/netscape/jss/asn1
PACKAGE = org/mozilla/jss/asn1
CLASSES = \
ANY \

View File

@ -42,7 +42,7 @@
#include <jssutil.h>
#include "_jni/com_netscape_jss_crypto_Algorithm.h"
#include "_jni/org_mozilla_jss_crypto_Algorithm.h"
#include "Algorithm.h"
static PRStatus
@ -105,7 +105,7 @@ JSS_AlgInfo JSS_AlgTable[NUM_ALGS] = {
* An object containing all algorithms supported by this object.
*/
JNIEXPORT jlongArray JNICALL
Java_com_netscape_jss_crypto_Algorithm_getAllAlgorithmIndices
Java_org_mozilla_jss_crypto_Algorithm_getAllAlgorithmIndices
( JNIEnv *env, jclass this, jobject jUsage )
{
/* "JNI" data members */
@ -199,7 +199,7 @@ loser:
* All unusable key sizes are stored as 0L.
*/
JNIEXPORT jint JNICALL
Java_com_netscape_jss_crypto_Algorithm_getStrongestKeySize
Java_org_mozilla_jss_crypto_Algorithm_getStrongestKeySize
( JNIEnv *env, jclass this, jobject jUsage, jint alg )
{
/* "JNI" data members */
@ -288,7 +288,7 @@ loser:
* A boolean denoting whether or not the algorithm is allowed.
*/
JNIEXPORT jboolean JNICALL
Java_com_netscape_jss_crypto_Algorithm_isAllowed
Java_org_mozilla_jss_crypto_Algorithm_isAllowed
( JNIEnv *env, jclass this, jobject jUsage, jint alg )
{
/* "JNI" data members */
@ -371,7 +371,7 @@ loser:
*
* INPUTS
* alg
* An com.netscape.jss.Algorithm object. Must not be NULL.
* An org.mozilla.jss.Algorithm object. Must not be NULL.
* RETURNS
* CK_MECHANISM_TYPE corresponding to this algorithm, or
* CKM_INVALID_MECHANISM if none exists.
@ -398,7 +398,7 @@ JSS_getPK11MechFromAlg(JNIEnv *env, jobject alg)
*
* INPUTS
* alg
* An com.netscape.jss.Algorithm object. Must not be NULL.
* An org.mozilla.jss.Algorithm object. Must not be NULL.
* RETURNS
* SECOidTag corresponding to this algorithm, or SEC_OID_UNKNOWN
* if none was found.
@ -427,7 +427,7 @@ JSS_getOidTagFromAlg(JNIEnv *env, jobject alg)
*
* INPUTS
* alg
* An com.netscape.jss.Algorithm object. Must not be NULL.
* An org.mozilla.jss.Algorithm object. Must not be NULL.
* RETURNS
* The index obtained from the algorithm, or -1 if an exception was
* thrown.
@ -474,7 +474,7 @@ finish:
*
* INPUTS
* alg
* An com.netscape.jss.Algorithm object. Must not be NULL.
* An org.mozilla.jss.Algorithm object. Must not be NULL.
* OUTPUTS
* info
* Pointer to a JSS_AlgInfo which will get the information about
@ -507,7 +507,7 @@ finish:
*
*/
JNIEXPORT jint JNICALL
Java_com_netscape_jss_crypto_EncryptionAlgorithm_getIVLength
Java_org_mozilla_jss_crypto_EncryptionAlgorithm_getIVLength
(JNIEnv *env, jobject this)
{
CK_MECHANISM_TYPE mech;

View File

@ -154,7 +154,7 @@ JSS_isAllowedFromKRAPKCS12( jint alg );
*
* INPUTS
* alg
* An com.netscape.jss.Algorithm object. Must not be NULL.
* An org.mozilla.jss.Algorithm object. Must not be NULL.
* RETURNS
* SECOidTag corresponding to this algorithm, or SEC_OID_UNKNOWN
* if none was found.
@ -168,7 +168,7 @@ JSS_getOidTagFromAlg(JNIEnv *env, jobject alg);
*
* INPUTS
* alg
* An com.netscape.jss.Algorithm object. Must not be NULL.
* An org.mozilla.jss.Algorithm object. Must not be NULL.
* RETURNS
* CK_MECHANISM_TYPE corresponding to this algorithm, or
* CKM_INVALID_MECHANISM if none was found.

View File

@ -31,9 +31,9 @@
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
import com.netscape.jss.asn1.OBJECT_IDENTIFIER;
import org.mozilla.jss.asn1.OBJECT_IDENTIFIER;
import java.security.NoSuchAlgorithmException;
/**

View File

@ -31,7 +31,7 @@
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
/**
* This exception is thrown if an initialization operation

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
public class BadPaddingException extends Exception {
public BadPaddingException() {

View File

@ -31,12 +31,12 @@
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
import java.security.InvalidKeyException;
import java.security.spec.AlgorithmParameterSpec;
import java.security.InvalidAlgorithmParameterException;
import com.netscape.jss.util.Assert;
import org.mozilla.jss.util.Assert;
/**
* A context for performing symmetric encryption and decryption.

View File

@ -31,9 +31,9 @@
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
import com.netscape.jss.util.*;
import org.mozilla.jss.util.*;
import java.security.*;
import java.security.cert.CertificateEncodingException;
import java.io.Serializable;
@ -161,7 +161,7 @@ public interface CryptoStore {
* @exception TokenException If an error occurs on the token while
* deleting the key.
*/
public void deletePrivateKey(com.netscape.jss.crypto.PrivateKey key)
public void deletePrivateKey(org.mozilla.jss.crypto.PrivateKey key)
throws NoSuchItemOnTokenException, TokenException;
////////////////////////////////////////////////////////////

View File

@ -31,9 +31,9 @@
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
import com.netscape.jss.util.*;
import org.mozilla.jss.util.*;
import java.security.*;
/**
@ -41,7 +41,7 @@ import java.security.*;
* cryptographic items, such as keys and certs. It corresponds to a
* Cryptographic Service Provider (CSP) in CDSA, and to a PKCS #11 token.
* <p>Instances of CryptoToken are obtained from CryptoManager.
* @see com.netscape.jss.CryptoManager
* @see org.mozilla.jss.CryptoManager
*/
public interface CryptoToken {
@ -58,7 +58,7 @@ public interface CryptoToken {
* @exception java.security.NoSuchAlgorithmException If the given
* algorithm is not supported by this provider.
*/
public abstract com.netscape.jss.crypto.Signature
public abstract org.mozilla.jss.crypto.Signature
getSignatureContext(SignatureAlgorithm algorithm)
throws java.security.NoSuchAlgorithmException, TokenException;
@ -96,7 +96,7 @@ public interface CryptoToken {
/**
* Returns a Random Number Generator implemented on this token.
*
* @exception com.netscape.jss.crypto.ServiceNotProvidedException If this token
* @exception org.mozilla.jss.crypto.ServiceNotProvidedException If this token
* does not perform random number generation
*/
/*
@ -186,7 +186,7 @@ public interface CryptoToken {
* @exception IncorrectPasswordException If the supplied password is
* incorrect.
* @see #setLoginMode
* @see com.netscape.jss.CryptoManager#setPasswordCallback
* @see org.mozilla.jss.CryptoManager#setPasswordCallback
*/
public abstract void login(PasswordCallback pwcb)
throws IncorrectPasswordException, TokenException;
@ -203,7 +203,7 @@ public interface CryptoToken {
public static final int ONE_TIME=0;
/**
* Need to re-login after a period of time.
* @see com.netscape.jss.crypto.CryptoToken#setLoginTimeoutMinutes
* @see org.mozilla.jss.crypto.CryptoToken#setLoginTimeoutMinutes
*/
public static final int TIMEOUT=1;
/**

View File

@ -31,11 +31,11 @@
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
import java.util.Hashtable;
import java.security.NoSuchAlgorithmException;
import com.netscape.jss.asn1.*;
import org.mozilla.jss.asn1.*;
public class DigestAlgorithm extends Algorithm {

View File

@ -31,11 +31,11 @@
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
import java.util.Hashtable;
import java.security.NoSuchAlgorithmException;
import com.netscape.jss.asn1.*;
import org.mozilla.jss.asn1.*;
/**
* An algorithm for performing symmetric encryption.

View File

@ -31,10 +31,10 @@
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
import java.util.Hashtable;
import com.netscape.jss.asn1.*;
import org.mozilla.jss.asn1.*;
import java.security.NoSuchAlgorithmException;
/**

View File

@ -31,7 +31,7 @@
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
import java.security.spec.AlgorithmParameterSpec;

View File

@ -30,6 +30,6 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
public class IllegalBlockSizeException extends Exception { }

View File

@ -31,7 +31,7 @@
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
/**
* Certificates residing in the internal database. Their trust flags

View File

@ -31,7 +31,7 @@
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
/**
* This exception is thrown when we encounter a bogus DER blob.

View File

@ -31,7 +31,7 @@
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
/**
* An exception of this type is thrown if an encoded private key

View File

@ -31,7 +31,7 @@
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
import java.security.DigestException;
import java.security.InvalidKeyException;

View File

@ -31,7 +31,7 @@
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
/**
* An interface for secure random numbers. This should be replaced with

View File

@ -31,7 +31,7 @@
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
/**
* This exception is thrown if the user tries to import a

View File

@ -31,9 +31,9 @@
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
import com.netscape.jss.asn1.OBJECT_IDENTIFIER;
import org.mozilla.jss.asn1.OBJECT_IDENTIFIER;
import java.util.Hashtable;
import java.security.NoSuchAlgorithmException;

View File

@ -31,7 +31,7 @@
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
import java.security.spec.AlgorithmParameterSpec;
import java.security.InvalidAlgorithmParameterException;

View File

@ -31,7 +31,7 @@
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
/**
* Algorithms that can be used for keypair generation.

View File

@ -31,7 +31,7 @@
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
import java.security.*;
import java.security.SecureRandom;
@ -45,7 +45,7 @@ import java.security.spec.AlgorithmParameterSpec;
* generation, the Netscape internal token may do it instead. Call
* <code>keygenOnInternalToken</code> to find out if this is happening.
*
* @see com.netscape.jss.crypto.CryptoToken#getKeyPairGenerator
* @see org.mozilla.jss.crypto.CryptoToken#getKeyPairGenerator
*/
public class KeyPairGenerator {
@ -93,7 +93,7 @@ public class KeyPairGenerator {
* @exception InvalidAlgorithmParameterException If the parameters are
* inappropriate for the type of key pair that is being generated,
* or they are not supported by this generator.
* @see com.netscape.jss.crypto.RSAParameterSpec
* @see org.mozilla.jss.crypto.RSAParameterSpec
* @see java.security.spec.DSAParameterSpec
*/
public void initialize(AlgorithmParameterSpec params, SecureRandom random)
@ -109,7 +109,7 @@ public class KeyPairGenerator {
* @exception InvalidAlgorithmParameterException If the parameters are
* inappropriate for the type of key pair that is being generated,
* or they are not supported by this generator.
* @see com.netscape.jss.crypto.RSAParameterSpec
* @see org.mozilla.jss.crypto.RSAParameterSpec
* @see java.security.spec.DSAParameterSpec
*/
public void initialize(AlgorithmParameterSpec params)

View File

@ -31,7 +31,7 @@
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
import java.security.*;
import java.security.SecureRandom;

View File

@ -31,7 +31,7 @@
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
/**
*

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
import java.security.spec.AlgorithmParameterSpec;
import java.security.InvalidAlgorithmParameterException;

View File

@ -31,7 +31,7 @@
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
/**
* Thrown if a cryptographic item does not exist on the token it is

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
/**
* This class is a stub for javax.crypto.NoSuchPaddingException until we

View File

@ -31,7 +31,7 @@
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
/**
* This exception is thrown whenever something isn't implemented.

View File

@ -31,9 +31,9 @@
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
import com.netscape.jss.asn1.OBJECT_IDENTIFIER;
import org.mozilla.jss.asn1.OBJECT_IDENTIFIER;
import java.util.Hashtable;
import java.security.NoSuchAlgorithmException;

View File

@ -31,10 +31,10 @@
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
import java.security.spec.AlgorithmParameterSpec;
import com.netscape.jss.util.Password;
import org.mozilla.jss.util.Password;
public class PBEKeyGenParams implements AlgorithmParameterSpec {

View File

@ -31,7 +31,7 @@
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
public class PQGParamGenException extends Exception {
public PQGParamGenException() {}

View File

@ -31,7 +31,7 @@
* GPL.
*/
#include "_jni/com_netscape_jss_crypto_PQGParams.h"
#include "_jni/org_mozilla_jss_crypto_PQGParams.h"
#include <nspr.h>
@ -54,7 +54,7 @@ generate(JNIEnv *env, jclass PQGParamsClass, jint keySize, jint seedBytes);
*
*/
JNIEXPORT jobject JNICALL
Java_com_netscape_jss_crypto_PQGParams_generateNative__I
Java_org_mozilla_jss_crypto_PQGParams_generateNative__I
(JNIEnv *env, jclass PQGParamsClass, jint keySize)
{
return generate(env, PQGParamsClass, keySize, 0);
@ -65,7 +65,7 @@ Java_com_netscape_jss_crypto_PQGParams_generateNative__I
*
*/
JNIEXPORT jobject JNICALL
Java_com_netscape_jss_crypto_PQGParams_generateNative__II
Java_org_mozilla_jss_crypto_PQGParams_generateNative__II
(JNIEnv *env, jclass PQGParamsClass, jint keySize, jint seedBytes)
{
if(seedBytes < 20 || seedBytes > 255) {
@ -316,7 +316,7 @@ finish:
*
*/
JNIEXPORT jboolean JNICALL
Java_com_netscape_jss_crypto_PQGParams_paramsAreValidNative
Java_org_mozilla_jss_crypto_PQGParams_paramsAreValidNative
(JNIEnv *env, jobject this, jbyteArray jP, jbyteArray jQ, jbyteArray jG,
jbyteArray jSeed, jint jCounter, jbyteArray jH)
{

View File

@ -31,11 +31,11 @@
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
import java.math.BigInteger;
import java.security.spec.DSAParameterSpec;
import com.netscape.jss.util.Assert;
import org.mozilla.jss.util.Assert;
/**
* PQG parameters for DSA key generation, along with the seed, counter,
@ -93,9 +93,9 @@ public class PQGParams extends DSAParameterSpec {
* @exception java.security.InvalidParameterException If the keySize
* is outside the bounds described by the DSA key pair
* generation algorithm.
* @exception com.netscape.jss.crypto.PQGParamGenException If an error
* @exception org.mozilla.jss.crypto.PQGParamGenException If an error
* occurs during the generation process.
* @see com.netscape.jss.CryptoManager#initialize
* @see org.mozilla.jss.CryptoManager#initialize
*/
public static PQGParams
generate(int keySize)
@ -140,9 +140,9 @@ public class PQGParams extends DSAParameterSpec {
* @exception java.security.InvalidParameterException If the keySize
* or number of seed bytes is outside the bounds described by the
* DSA key pair generation algorithm.
* @exception com.netscape.jss.crypto.PQGParamGenException If an error
* @exception org.mozilla.jss.crypto.PQGParamGenException If an error
* occurs during the generation process.
* @see com.netscape.jss.CryptoManager#initialize
* @see org.mozilla.jss.CryptoManager#initialize
*/
public static PQGParams
generate(int keySize, int seedBytes)

View File

@ -31,11 +31,11 @@
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
import com.netscape.jss.asn1.OBJECT_IDENTIFIER;
import org.mozilla.jss.asn1.OBJECT_IDENTIFIER;
import java.util.Hashtable;
import com.netscape.jss.util.Assert;
import org.mozilla.jss.util.Assert;
import java.security.NoSuchAlgorithmException;
/**
@ -57,7 +57,7 @@ public interface PrivateKey extends java.security.PrivateKey
* Returns the unique ID of this key. Unique IDs can be used to match
* certificates to keys.
*
* @see com.netscape.jss.crypto.TokenCertificate#getUniqueID
* @see org.mozilla.jss.crypto.TokenCertificate#getUniqueID
*/
public byte[] getUniqueID() throws TokenException;

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
import java.security.spec.AlgorithmParameterSpec;
import java.math.BigInteger;

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
/**
* This class is a placeholder for javax.crypto.ShortBufferException until

View File

@ -30,9 +30,9 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
import com.netscape.jss.util.*;
import org.mozilla.jss.util.*;
import java.security.*;
import java.security.spec.AlgorithmParameterSpec;
@ -40,7 +40,7 @@ import java.security.spec.AlgorithmParameterSpec;
* A class for producing and verifying digital signatures.
* Instances of this class can be obtain from <code>CryptoToken</code>s.
*
* @see com.netscape.jss.crypto.CryptoToken#getSignatureContext
* @see org.mozilla.jss.crypto.CryptoToken#getSignatureContext
*/
public class Signature {

View File

@ -30,9 +30,9 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
import com.netscape.jss.asn1.OBJECT_IDENTIFIER;
import org.mozilla.jss.asn1.OBJECT_IDENTIFIER;
import java.util.Hashtable;
import java.security.NoSuchAlgorithmException;

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
import java.security.*;
import java.security.SecureRandom;

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
public interface SymmetricKey {

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
/**
* An X509 Certificate that lives on a PKCS #11 token.
@ -45,7 +45,7 @@ public interface TokenCertificate extends X509Certificate {
* Returns the unique ID of this key. Unique IDs can be used to match
* certificates to keys.
*
* @see com.netscape.jss.crypto.PrivateKey#getUniqueID
* @see org.mozilla.jss.crypto.PrivateKey#getUniqueID
*/
public abstract byte[] getUniqueID();

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
/**
* This class indicates that an unknown error occurred on a CryptoToken.

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
/**
* An interface that allows providers to access CryptoManager without actually

View File

@ -30,10 +30,10 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
/**
* The com.netscape.jss.provider package comes before CryptoManager in
* The org.mozilla.jss.provider package comes before CryptoManager in
* the depency list, so this class is used to allow them to access
* CryptoManager sneakily. When CryptoManager initializes, it registers
* itself as a token supplier with <code>setTokenSupplier</code>. Then

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
/**
* This is a private JSS class that allows the pkcs11 package access

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.crypto;
package org.mozilla.jss.crypto;
import java.security.Principal;
import java.math.BigInteger;

View File

@ -39,12 +39,12 @@ NS_USE_JDK = 1
REQUIRES = nspr20 dbm security
PACKAGE = com/netscape/jss/crypto
PACKAGE = org/mozilla/jss/crypto
JNI_GEN = \
com.netscape.jss.crypto.Algorithm \
com.netscape.jss.crypto.EncryptionAlgorithm \
com.netscape.jss.crypto.PQGParams \
org.mozilla.jss.crypto.Algorithm \
org.mozilla.jss.crypto.EncryptionAlgorithm \
org.mozilla.jss.crypto.PQGParams \
$(NULL)
PRIVATE_EXPORTS = \

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss;
package org.mozilla.jss;
/**
* Thrown if a CRL cannot be imported

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss;
package org.mozilla.jss;
/**
* This exception is thrown if the certificate database does not exist,

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
#include "_jni/com_netscape_jss_CryptoManager.h"
#include "_jni/org_mozilla_jss_CryptoManager.h"
#include <svrplcy.h>
#include <secitem.h>
@ -329,7 +329,7 @@ simpleInitialize(JNIEnv *env)
* Initializes NSPR and the RNG only.
*/
JNIEXPORT void JNICALL
Java_com_netscape_jss_CryptoManager_initializeNative
Java_org_mozilla_jss_CryptoManager_initializeNative
(JNIEnv *env, jclass clazz)
{
if(simpleInitialize(env) != PR_SUCCESS ) {
@ -382,7 +382,7 @@ static JavaVM *javaVM = NULL;
*
*/
JNIEXPORT void JNICALL
Java_com_netscape_jss_CryptoManager_initializeAllNative
Java_org_mozilla_jss_CryptoManager_initializeAllNative
(JNIEnv *env, jclass clazz,
jstring modDBName,
jstring keyDBName,
@ -668,7 +668,7 @@ finish:
*
*/
JNIEXPORT void JNICALL
Java_com_netscape_jss_CryptoManager_setNativePasswordCallback
Java_org_mozilla_jss_CryptoManager_setNativePasswordCallback
(JNIEnv *env, jclass clazz, jobject callback)
{
JSS_setPasswordCallback(env, callback);
@ -954,7 +954,7 @@ finish:
* these into a Vector.
*/
JNIEXPORT void JNICALL
Java_com_netscape_jss_CryptoManager_putModulesInVector
Java_org_mozilla_jss_CryptoManager_putModulesInVector
(JNIEnv *env, jobject this, jobject vector)
{
SECMODListLock *listLock=NULL;
@ -1033,7 +1033,7 @@ finish:
* the PKCS #11 library.
*/
JNIEXPORT jboolean JNICALL
Java_com_netscape_jss_CryptoManager_enableFIPS
Java_org_mozilla_jss_CryptoManager_enableFIPS
(JNIEnv *env, jclass clazz, jboolean fips)
{
char *name=NULL;
@ -1064,7 +1064,7 @@ Java_com_netscape_jss_CryptoManager_enableFIPS
* Returns true if FIPS mode is currently on, false if it ain't.
*/
JNIEXPORT jboolean JNICALL
Java_com_netscape_jss_CryptoManager_FIPSEnabled(JNIEnv *env, jobject this)
Java_org_mozilla_jss_CryptoManager_FIPSEnabled(JNIEnv *env, jobject this)
{
if( PK11_IsFIPS() ) {
return JNI_TRUE;
@ -1079,7 +1079,7 @@ Java_com_netscape_jss_CryptoManager_FIPSEnabled(JNIEnv *env, jobject this)
* Returns true if this build of jssjava is "domestic", false otherwise.
*/
JNIEXPORT jboolean JNICALL
Java_com_netscape_jss_CryptoManager_isDomestic(JNIEnv *env, jobject this)
Java_org_mozilla_jss_CryptoManager_isDomestic(JNIEnv *env, jobject this)
{
/* "C" data members */
PRBool result;
@ -1121,7 +1121,7 @@ getPolicyTypeIndex( SVRPLCYPolicyType thisPolicy )
* Returns an integer related to the export control policy type
*/
JNIEXPORT jint JNICALL
Java_com_netscape_jss_CryptoManager_getExportControlPolicyType( JNIEnv *env,
Java_org_mozilla_jss_CryptoManager_getExportControlPolicyType( JNIEnv *env,
jobject this )
{
/* "C" data members */
@ -1141,7 +1141,7 @@ Java_com_netscape_jss_CryptoManager_getExportControlPolicyType( JNIEnv *env,
* unusable.
*/
JNIEXPORT void JNICALL
Java_com_netscape_jss_DatabaseCloser_closeDatabases
Java_org_mozilla_jss_DatabaseCloser_closeDatabases
(JNIEnv *env, jobject this)
{
PR_ASSERT( CERT_GetDefaultCertDB() != NULL );

View File

@ -30,20 +30,20 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss;
package org.mozilla.jss;
import com.netscape.jss.crypto.*;
import com.netscape.jss.util.*;
import com.netscape.jss.asn1.*;
import org.mozilla.jss.crypto.*;
import org.mozilla.jss.util.*;
import org.mozilla.jss.asn1.*;
import java.security.cert.CertificateException;
import java.security.GeneralSecurityException;
import com.netscape.jss.pkcs11.PK11Cert;
import org.mozilla.jss.pkcs11.PK11Cert;
import java.util.*;
import com.netscape.jss.pkcs11.PK11Token;
import com.netscape.jss.pkcs11.PK11Module;
import com.netscape.jss.pkcs11.PK11SecureRandom;
import org.mozilla.jss.pkcs11.PK11Token;
import org.mozilla.jss.pkcs11.PK11Module;
import org.mozilla.jss.pkcs11.PK11SecureRandom;
import java.security.cert.CertificateEncodingException;
import com.netscape.jss.CRLImportException;
import org.mozilla.jss.CRLImportException;
/**
* This class is the starting poing for the crypto package.
@ -51,7 +51,7 @@ import com.netscape.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.1 $ $Date: 2000-12-15 20:49:37 $
* @version $Revision: 1.2 $ $Date: 2000-12-19 06:18:01 $
*/
public final class CryptoManager implements TokenSupplier
{
@ -463,7 +463,7 @@ public final class CryptoManager implements TokenSupplier
* loaded cryptographic modules for the token.
*
* @param name The name of the token.
* @exception com.netscape.jss.crypto.NoSuchTokenException If no token
* @exception org.mozilla.jss.crypto.NoSuchTokenException If no token
* is found with the given name.
*/
public synchronized CryptoToken getTokenByName(String name)
@ -510,7 +510,7 @@ public final class CryptoManager implements TokenSupplier
*
* @return All tokens accessible from JSS. Each item of the enumeration
* is a <code>CryptoToken</code>
* @see com.netscape.jss.crypto.CryptoToken
* @see org.mozilla.jss.crypto.CryptoToken
*/
public synchronized Enumeration getAllTokens() {
Enumeration modules = getModules();
@ -559,7 +559,7 @@ public final class CryptoManager implements TokenSupplier
*
* @return An enumeration of all installed PKCS #11 modules. Each
* item in the enumeration is a <code>PK11Module</code>.
* @see com.netscape.jss.pkcs11.PK11Module
* @see org.mozilla.jss.pkcs11.PK11Module
*/
public synchronized Enumeration getModules() {
return moduleVector.elements();
@ -757,9 +757,9 @@ public final class CryptoManager implements TokenSupplier
* database.
* @param certDBName The full path, relative or absolute, of the
* certificate database.
* @exception com.netscape.jss.util.KeyDatabaseException Unable to open
* @exception org.mozilla.jss.util.KeyDatabaseException Unable to open
* the key database, or it was currupted.
* @exception com.netscape.jss.util.CertDatabaseException Unable
* @exception org.mozilla.jss.util.CertDatabaseException Unable
* to open the certificate database, or it was currupted.
**/
public static synchronized void initialize( String modDBName,
@ -784,9 +784,9 @@ public final class CryptoManager implements TokenSupplier
* <code>initialize()</code>.
*
* @param values The options with which to initialize CryptoManager.
* @exception com.netscape.jss.util.KeyDatabaseException Unable to open
* @exception org.mozilla.jss.util.KeyDatabaseException Unable to open
* the key database, or it was currupted.
* @exception com.netscape.jss.util.CertDatabaseException Unable
* @exception org.mozilla.jss.util.CertDatabaseException Unable
* to open the certificate database, or it was currupted.
**/
public static synchronized void initialize( InitializationValues values )
@ -834,7 +834,7 @@ public final class CryptoManager implements TokenSupplier
}
java.security.Security.removeProvider("SUN");
int position = java.security.Security.insertProviderAt(
new com.netscape.jss.provider.Provider(),
new org.mozilla.jss.provider.Provider(),
1);
if(position==-11) {
Debug.trace(Debug.ERROR,
@ -1116,7 +1116,7 @@ public final class CryptoManager implements TokenSupplier
* with the given nickname.
* @exception TokenException If an error occurs in the security library.
*/
public com.netscape.jss.crypto.X509Certificate
public org.mozilla.jss.crypto.X509Certificate
findCertByNickname(String nickname)
throws ObjectNotFoundException, TokenException
{
@ -1132,7 +1132,7 @@ public final class CryptoManager implements TokenSupplier
* if no matching certs were found.
* @exception TokenException If an error occurs in the security library.
*/
public com.netscape.jss.crypto.X509Certificate[]
public org.mozilla.jss.crypto.X509Certificate[]
findCertsByNickname(String nickname)
throws TokenException
{
@ -1152,7 +1152,7 @@ public final class CryptoManager implements TokenSupplier
* in the internal certificate database or on any PKCS #11 token.
* @exception TokenException If an error occurs in the security library.
*/
public com.netscape.jss.crypto.X509Certificate
public org.mozilla.jss.crypto.X509Certificate
findCertByIssuerAndSerialNumber(byte[] derIssuer, INTEGER serialNumber)
throws ObjectNotFoundException, TokenException
{
@ -1171,15 +1171,15 @@ public final class CryptoManager implements TokenSupplier
* @param serialNumber The contents octets of a DER-encoding of the
* certificate serial number.
*/
private native com.netscape.jss.crypto.X509Certificate
private native org.mozilla.jss.crypto.X509Certificate
findCertByIssuerAndSerialNumberNative(byte[] derIssuer, byte[] serialNumber)
throws ObjectNotFoundException, TokenException;
protected native com.netscape.jss.crypto.X509Certificate
protected native org.mozilla.jss.crypto.X509Certificate
findCertByNicknameNative(String nickname)
throws ObjectNotFoundException, TokenException;
protected native com.netscape.jss.crypto.X509Certificate[]
protected native org.mozilla.jss.crypto.X509Certificate[]
findCertsByNicknameNative(String nickname)
throws TokenException;
@ -1195,8 +1195,8 @@ public final class CryptoManager implements TokenSupplier
* @throws CertificateException If the certificate is not recognized
* by the underlying provider.
*/
public com.netscape.jss.crypto.X509Certificate[]
buildCertificateChain(com.netscape.jss.crypto.X509Certificate leaf)
public org.mozilla.jss.crypto.X509Certificate[]
buildCertificateChain(org.mozilla.jss.crypto.X509Certificate leaf)
throws java.security.cert.CertificateException, TokenException
{
if( ! (leaf instanceof PK11Cert) ) {
@ -1206,7 +1206,7 @@ public final class CryptoManager implements TokenSupplier
return buildCertificateChainNative((PK11Cert)leaf);
}
native com.netscape.jss.crypto.X509Certificate[]
native org.mozilla.jss.crypto.X509Certificate[]
buildCertificateChainNative(PK11Cert leaf)
throws CertificateException, TokenException;
@ -1221,20 +1221,20 @@ public final class CryptoManager implements TokenSupplier
* found matching the given certificate.
* @exception TokenException If an error occurs in the security library.
*/
public com.netscape.jss.crypto.PrivateKey
findPrivKeyByCert(com.netscape.jss.crypto.X509Certificate cert)
public org.mozilla.jss.crypto.PrivateKey
findPrivKeyByCert(org.mozilla.jss.crypto.X509Certificate cert)
throws ObjectNotFoundException, TokenException
{
Assert.assert(cert!=null);
if(! (cert instanceof com.netscape.jss.pkcs11.PK11Cert)) {
if(! (cert instanceof org.mozilla.jss.pkcs11.PK11Cert)) {
Assert.notReached("non-pkcs11 cert passed to PK11Finder");
throw new ObjectNotFoundException();
}
return findPrivKeyByCertNative(cert);
}
protected native com.netscape.jss.crypto.PrivateKey
findPrivKeyByCertNative(com.netscape.jss.crypto.X509Certificate cert)
protected native org.mozilla.jss.crypto.PrivateKey
findPrivKeyByCertNative(org.mozilla.jss.crypto.X509Certificate cert)
throws ObjectNotFoundException, TokenException;
/////////////////////////////////////////////////////////////
@ -1247,7 +1247,7 @@ public final class CryptoManager implements TokenSupplier
* @return A JSS SecureRandom implemented with the FIPS-validated
* Netscape security library.
*/
public com.netscape.jss.crypto.JSSSecureRandom
public org.mozilla.jss.crypto.JSSSecureRandom
createPseudoRandomNumberGenerator()
{
return new PK11SecureRandom();
@ -1259,7 +1259,7 @@ public final class CryptoManager implements TokenSupplier
* @return A JSS SecureRandom implemented with the FIPS-validated
* Netscape security library.
*/
public com.netscape.jss.crypto.JSSSecureRandom
public org.mozilla.jss.crypto.JSSSecureRandom
getSecureRNG() {
return new PK11SecureRandom();
}

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss;
package org.mozilla.jss;
/**
* A class for closing databases. Since closing the databases is
@ -41,8 +41,8 @@ package com.netscape.jss;
public abstract class DatabaseCloser {
private static final String authorizedClosers[] =
{ "com.netscape.certsetup.apps.CertSetup$DatabaseCloser",
"com.netscape.jss.CloseDBs" };
{ "org.mozilla.certsetup.apps.CertSetup$DatabaseCloser",
"org.mozilla.jss.CloseDBs" };
/**
* Creates a new DatabaseCloser. This should only be called

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss;
package org.mozilla.jss;
/**
* This exception is thrown if the key database does not exist, or if

View File

@ -31,7 +31,7 @@
* GPL.
*/
#include "_jni/com_netscape_jss_NSSInit.h"
#include "_jni/org_mozilla_jss_NSSInit.h"
#include <nspr.h>
#include "jssinit.h"
@ -40,8 +40,8 @@
/* files everytime a new release of JSS is generated: */
/* */
/* jssjava: ns/ninja/cmd/jssjava/jssjava.c */
/* jss.jar: ns/ninja/com/netscape/jss/manage/NSSInit.java */
/* jss.dll: ns/ninja/com/netscape/jss/manage/NSSInit.c */
/* jss.jar: ns/ninja/org/mozilla/jss/manage/NSSInit.java */
/* jss.dll: ns/ninja/org/mozilla/jss/manage/NSSInit.c */
/* */
/********************************************************************/
@ -58,7 +58,7 @@ static const char* DLL_NSPR_VERSION = "NSPR_VERSION = v3.5.1";
* This just passes its arguments to CryptoManager.initializeAllNative.
*/
JNIEXPORT void JNICALL
Java_com_netscape_jss_NSSInit_initializeNative
Java_org_mozilla_jss_NSSInit_initializeNative
(JNIEnv *env, jclass clazz,
jstring modDBName,
jstring keyDBName,
@ -103,7 +103,7 @@ Java_com_netscape_jss_NSSInit_initializeNative
* This just passes its arguments to CryptoManager.setNativePasswordCallback
*/
JNIEXPORT void JNICALL
Java_com_netscape_jss_NSSInit_setPasswordCallback
Java_org_mozilla_jss_NSSInit_setPasswordCallback
(JNIEnv *env, jclass clazz, jobject pwcb)
{
JSS_setPasswordCallback(env, pwcb);

View File

@ -30,14 +30,14 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss;
package org.mozilla.jss;
import com.netscape.jss.util.Debug;
import com.netscape.jss.util.PasswordCallback;
import com.netscape.jss.util.ConsolePasswordCallback;
import com.netscape.jss.KeyDatabaseException;
import com.netscape.jss.CertDatabaseException;
import com.netscape.jss.crypto.AlreadyInitializedException;
import org.mozilla.jss.util.Debug;
import org.mozilla.jss.util.PasswordCallback;
import org.mozilla.jss.util.ConsolePasswordCallback;
import org.mozilla.jss.KeyDatabaseException;
import org.mozilla.jss.CertDatabaseException;
import org.mozilla.jss.crypto.AlreadyInitializedException;
/**
* This class initializes Java NSS and sets up the password callback.
@ -49,8 +49,8 @@ public final class NSSInit {
/* files everytime a new release of JSS is generated: */
/* */
/* jssjava: ns/ninja/cmd/jssjava/jssjava.c */
/* jss.jar: ns/ninja/com/netscape/jss/manage/NSSInit.java */
/* jss.dll: ns/ninja/com/netscape/jss/manage/NSSInit.c */
/* jss.jar: ns/ninja/org/mozilla/jss/manage/NSSInit.java */
/* jss.dll: ns/ninja/org/mozilla/jss/manage/NSSInit.c */
/* */
/********************************************************************/
@ -192,8 +192,8 @@ public final class NSSInit {
* <p>This method may be called multiple times to alter the password
* callback.
*
* @see com.netscape.jss.util.PasswordCallback
* @see com.netscape.jss.util.ConsolePasswordCallback
* @see org.mozilla.jss.util.PasswordCallback
* @see org.mozilla.jss.util.ConsolePasswordCallback
*/
public static synchronized native void
setPasswordCallback(PasswordCallback cb);

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss;
package org.mozilla.jss;
/**
* Thrown if a token cannot be found.

View File

@ -30,7 +30,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
#include "_jni/com_netscape_jss_CryptoManager.h"
#include "_jni/org_mozilla_jss_CryptoManager.h"
#include <plarena.h>
#include <secmodt.h>
@ -55,7 +55,7 @@
*
*/
JNIEXPORT jobject JNICALL
Java_com_netscape_jss_CryptoManager_findCertByNicknameNative
Java_org_mozilla_jss_CryptoManager_findCertByNicknameNative
(JNIEnv *env, jobject this, jstring nickname)
{
char *nick=NULL;
@ -123,7 +123,7 @@ CreateNicknameCertList(CERTCertList *certList, CERTCertDBHandle *handle,
*
*/
JNIEXPORT jobjectArray JNICALL
Java_com_netscape_jss_CryptoManager_findCertsByNicknameNative
Java_org_mozilla_jss_CryptoManager_findCertsByNicknameNative
(JNIEnv *env, jobject this, jstring nickname)
{
CERTCertList *list =NULL;
@ -213,7 +213,7 @@ finish:
*
*/
JNIEXPORT jobject JNICALL
Java_com_netscape_jss_CryptoManager_findCertByIssuerAndSerialNumberNative
Java_org_mozilla_jss_CryptoManager_findCertByIssuerAndSerialNumberNative
(JNIEnv *env, jobject this, jbyteArray issuerBA, jbyteArray serialNumBA)
{
jobject certObject=NULL;
@ -278,7 +278,7 @@ finish:
*
*/
JNIEXPORT jobject JNICALL
Java_com_netscape_jss_CryptoManager_findPrivKeyByCertNative
Java_org_mozilla_jss_CryptoManager_findPrivKeyByCertNative
(JNIEnv *env, jobject this, jobject Cert)
{
PRThread *pThread;
@ -463,7 +463,7 @@ finish:
* There will always be at least one element in the array (the leaf).
*/
JNIEXPORT jobjectArray JNICALL
Java_com_netscape_jss_CryptoManager_buildCertificateChainNative
Java_org_mozilla_jss_CryptoManager_buildCertificateChainNative
(JNIEnv *env, jobject this, jobject leafCert)
{
PRThread *pThread;
@ -712,7 +712,7 @@ done:
* throws TOKEN_EXCEPTION
*/
JNIEXPORT jobject JNICALL
Java_com_netscape_jss_CryptoManager_importCertToPermNative
Java_org_mozilla_jss_CryptoManager_importCertToPermNative
(JNIEnv *env, jobject this, jobject cert, jstring nickString)
{
SECStatus rv;
@ -880,7 +880,7 @@ finish:
* CryptoManager.importCertPackage
*/
JNIEXPORT jobject JNICALL
Java_com_netscape_jss_CryptoManager_importCertPackageNative
Java_org_mozilla_jss_CryptoManager_importCertPackageNative
(JNIEnv *env, jobject this, jbyteArray packageArray, jstring nickString,
jboolean noUser, jboolean leafIsCA)
{
@ -1332,7 +1332,7 @@ finish:
* CryptoManager.exportCertsToPKCS7
*/
JNIEXPORT jbyteArray JNICALL
Java_com_netscape_jss_CryptoManager_exportCertsToPKCS7
Java_org_mozilla_jss_CryptoManager_exportCertsToPKCS7
(JNIEnv *env, jobject this, jobjectArray certArray)
{
int i, certcount;
@ -1577,7 +1577,7 @@ collect_certs(CERTCertificate *cert, SECItem *key, void *arg)
* CryptoManager.getCACerts
*/
JNIEXPORT jobjectArray JNICALL
Java_com_netscape_jss_CryptoManager_getCACerts
Java_org_mozilla_jss_CryptoManager_getCACerts
(JNIEnv *env, jobject this)
{
CERTCertDBHandle *certdb = CERT_GetDefaultCertDB();
@ -1677,7 +1677,7 @@ finish:
* CryptoManager.getPermCerts
*/
JNIEXPORT jobjectArray JNICALL
Java_com_netscape_jss_CryptoManager_getPermCerts
Java_org_mozilla_jss_CryptoManager_getPermCerts
(JNIEnv *env, jobject this)
{
CERTCertDBHandle *certdb = CERT_GetDefaultCertDB();
@ -1777,7 +1777,7 @@ finish:
JNIEXPORT void JNICALL
Java_com_netscape_jss_CryptoManager_importCRLNative
Java_org_mozilla_jss_CryptoManager_importCRLNative
(JNIEnv *env, jobject this,
jbyteArray der_crl, jstring url_jstr, jint rl_type)

View File

@ -38,12 +38,12 @@ NS_USE_JDK = 1
REQUIRES = nspr20 svrcore dbm security
PACKAGE = com/netscape/jss
PACKAGE = org/mozilla/jss
JNI_GEN = \
com.netscape.jss.DatabaseCloser \
com.netscape.jss.CryptoManager \
com.netscape.jss.NSSInit \
org.mozilla.jss.DatabaseCloser \
org.mozilla.jss.CryptoManager \
org.mozilla.jss.NSSInit \
$(NULL)
CLASSES = \

View File

@ -31,12 +31,12 @@
* GPL.
*/
package com.netscape.jss.pkcs10;
package org.mozilla.jss.pkcs10;
import com.netscape.jss.asn1.*;
import com.netscape.jss.pkix.primitive.*;
import com.netscape.jss.crypto.*;
import com.netscape.jss.CryptoManager;
import org.mozilla.jss.asn1.*;
import org.mozilla.jss.pkix.primitive.*;
import org.mozilla.jss.crypto.*;
import org.mozilla.jss.CryptoManager;
import java.security.cert.CertificateException;
import java.security.NoSuchAlgorithmException;
import java.security.InvalidKeyException;

View File

@ -30,11 +30,11 @@
* may use your version of this file under either the MPL or the
* GPL.
*/
package com.netscape.jss.pkcs10;
package org.mozilla.jss.pkcs10;
import com.netscape.jss.asn1.*;
import com.netscape.jss.pkix.primitive.*;
import com.netscape.jss.util.*;
import org.mozilla.jss.asn1.*;
import org.mozilla.jss.pkix.primitive.*;
import org.mozilla.jss.util.*;
import java.security.cert.CertificateException;
import java.security.PublicKey;
import java.util.Calendar;

Some files were not shown because too many files have changed in this diff Show More