Deprecated API

Contents

Deprecated Interfaces

JSSSecureRandom
Use the JCA interface instead (java.security.SecureRandom)
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 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 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.SSLServerSocket.setNeedClientAuth(boolean)
As of JSS 3.0.
org.mozilla.jss.ssl.SSLServerSocket.setNeedClientAuthNoExpiryCheck(boolean)
As of JSS 3.0.
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.