Deprecated API

Contents

Deprecated Interfaces

JSSSecureRandom
Use the JCA interface instead (java.security.SecureRandom)
KeyGenerator
Use the JCA interface instead (javax.crypto.KeyGenerator)
KeyWrapper
Use the JCA interface instead (javax.crypto.Cipher)

Deprecated Classes

BadPaddingException
Use javax.crypto.BadPaddingException.
Cipher
Use the JCA interface instead (javax.crypto.Cipher)
JSSKeyGeneratorSpi.HmacSHA1
This class name is misleading.
JSSMessageDigest
Use the JCA interface instead (java.security.MessageDigest)
JSSSecretKeyFactorySpi.HmacSHA1
This class name is misleading.
KeyPairGenerator
Use the JCA interface instead (java.security.KeyPairGenerator)
Signature
Use the JCA interface instead (java.security.Signature)

Deprecated Fields

org.mozilla.jss.pkcs11.KeyType.FORTEZZA
As of NSS 3.11, FORTEZZA is no longer supported.
org.mozilla.jss.util.NativeErrcodes.SSL_ERROR_FORTEZZA_PQG
As of NSS 3.11, FORTEZZA is no longer supported.
org.mozilla.jss.util.NativeErrcodes.XP_SEC_FORTEZZA_BAD_CARD
As of NSS 3.11, FORTEZZA is no longer supported.
org.mozilla.jss.util.NativeErrcodes.SEC_ERROR_NOT_FORTEZZA_ISSUER
As of NSS 3.11, FORTEZZA is no longer supported.
org.mozilla.jss.ssl.SSLSecurityStatus.STATUS_FORTEZZA
As of NSS 3.11, FORTEZZA is no longer supported.
org.mozilla.jss.ssl.SSLSocket.SSL3_FORTEZZA_DMS_WITH_NULL_SHA
As of NSS 3.11, FORTEZZA is no longer supported.

Deprecated Methods

org.mozilla.jss.crypto.Algorithm.getParameterClass()
Call getParameterClasses() instead.
org.mozilla.jss.crypto.CryptoToken.getSignatureContext(SignatureAlgorithm)
Use the JCA interface instead (java.security.Signature)
org.mozilla.jss.crypto.CryptoToken.getDigestContext(DigestAlgorithm)
Use the JCA interface instead (java.security.MessageDigest)
org.mozilla.jss.crypto.CryptoToken.getCipherContext(EncryptionAlgorithm)
Use the JCA interface instead (javax.crypto.Cipher)
org.mozilla.jss.crypto.CryptoToken.getKeyWrapper(KeyWrapAlgorithm)
Use the JCA interface instead (javax.crypto.Cipher)
org.mozilla.jss.crypto.CryptoToken.getKeyGenerator(KeyGenAlgorithm)
Use the JCA interface instead (javax.crypto.KeyGenerator)
org.mozilla.jss.crypto.CryptoToken.cloneKey(SymmetricKey)
Use the JCA interface instead (javax.crypto.SecretKeyFactory)
org.mozilla.jss.crypto.CryptoToken.getKeyPairGenerator(KeyPairAlgorithm)
Use the JCA interface instead (java.security.KeyPairGenerator)
org.mozilla.jss.crypto.EncryptionAlgorithm.fromString(String)
This method is deprecated because algorithm strings don't contain key length, which is necessary to distinguish between AES algorithms.
org.mozilla.jss.crypto.EncryptionAlgorithm.isPadded()
Call getPaddingType() instead.
org.mozilla.jss.pkcs11.PK11PrivKey.getUniqueID()
This ID is based on an implementation that might change.
org.mozilla.jss.pkcs11.PK11PubKey.fromRaw(PrivateKey.Type,byte[])
This method works for RSA keys but not DSA or EC keys.
org.mozilla.jss.pkcs11.PK11Token.getSignatureContext(SignatureAlgorithm)
Use the JCA interface instead (java.security.Signature)
org.mozilla.jss.pkcs11.PK11Token.getDigestContext(DigestAlgorithm)
Use the JCA interface instead (java.security.MessageDigest)
org.mozilla.jss.pkcs11.PK11Token.getCipherContext(EncryptionAlgorithm)
Use the JCA interface instead (javax.crypto.Cipher)
org.mozilla.jss.pkcs11.PK11Token.getKeyGenerator(KeyGenAlgorithm)
Use the JCA interface instead (javax.crypto.KeyGenerator)
org.mozilla.jss.pkcs11.PK11Token.getKeyWrapper(KeyWrapAlgorithm)
Use the JCA interface instead (javax.crypto.Cipher)
org.mozilla.jss.pkcs11.PK11Token.getKeyPairGenerator(KeyPairAlgorithm)
Use the JCA interface instead (java.security.KeyPairGenerator)
org.mozilla.jss.crypto.PrivateKey.getUniqueID()
This ID is based on an implementation that might change.
org.mozilla.jss.pkix.cmmf.RevRequest.getPassphrase()
The passphrase field has been renamed sharedSecret.
org.mozilla.jss.ssl.SSLSecurityStatus.toString()
As of NSS 3.11, FORTEZZA is no longer supported.
org.mozilla.jss.ssl.SSLServerSocket.setNeedClientAuth(boolean)
As of JSS 3.0.
org.mozilla.jss.ssl.SSLServerSocket.setNeedClientAuthNoExpiryCheck(boolean)
As of JSS 3.0.
org.mozilla.jss.ssl.SSLServerSocket.requireClientAuth(boolean,boolean)
use requireClientAuth(int)
org.mozilla.jss.ssl.SSLSocket.requireClientAuth(boolean,boolean)
use requireClientAuth(int)
org.mozilla.jss.ssl.SSLSocket.requireClientAuthDefault(boolean,boolean)
use requireClientAuthDefault(int)
org.mozilla.jss.ssl.SSLSocket.setNeedClientAuth(boolean)
As of JSS 3.0.
org.mozilla.jss.ssl.SSLSocket.setNeedClientAuthNoExpiryCheck(boolean)
As of JSS 3.0.
org.mozilla.jss.crypto.TokenCertificate.getUniqueID()
This ID is based on an implementation that might change.

Deprecated Constructors

org.mozilla.jss.pkix.cmmf.RevRequest.RevRequest(ANY,INTEGER,ENUMERATED,OCTET_STRING,UTF8String)
This constructor is obsolete now that invalidityDate has been added to the class.
org.mozilla.jss.ssl.SSLSocket.SSLSocket(InetAddress,int,InetAddress,int,boolean,SSLCertificateApprovalCallback,SSLClientCertificateSelectionCallback)
As of JSS 3.0.