You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.




Deprecated API


Contents
Deprecated Interfaces
org.mozilla.jss.crypto.JSSSecureRandom
          Use the JCA interface instead (SecureRandom) 
org.mozilla.jss.crypto.KeyGenerator
          Use the JCA interface instead (KeyGenerator) 
org.mozilla.jss.crypto.KeyWrapper
          Use the JCA interface instead (Cipher) 
 

Deprecated Classes
org.mozilla.jss.crypto.Cipher
          Use the JCA interface instead (Cipher) 
org.mozilla.jss.crypto.JSSMessageDigest
          Use the JCA interface instead (MessageDigest) 
org.mozilla.jss.crypto.KeyPairGenerator
          Use the JCA interface instead (KeyPairGenerator) 
org.mozilla.jss.crypto.Signature
          Use the JCA interface instead (Signature) 
 

Deprecated Exceptions
org.mozilla.jss.crypto.BadPaddingException
          Use javax.crypto.BadPaddingException. 
 

Deprecated Fields
org.mozilla.jss.pkcs11.KeyType.FORTEZZA
          As of NSS 3.11, FORTEZZA is no longer supported. This is just a placeholder for backward compatibility. 
org.mozilla.jss.util.NativeErrcodes.SEC_ERROR_NOT_FORTEZZA_ISSUER
          As of NSS 3.11, FORTEZZA is no longer supported. SEC_ERROR_NOT_FORTEZZA_ISSUER is a placeholder for backward compatibility. 
org.mozilla.jss.util.NativeErrcodes.SSL_ERROR_FORTEZZA_PQG
          As of NSS 3.11, FORTEZZA is no longer supported. SSL_ERROR_FORTEZZA_PQG is a placeholder for backward compatibility. 
org.mozilla.jss.ssl.SSLSocket.SSL3_FORTEZZA_DMS_WITH_NULL_SHA
          As of NSS 3.11, FORTEZZA is no longer supported. SSL3_FORTEZZA_DMS_WITH_NULL_SHA, SSL3_FORTEZZA_DMS_WITH_RC4_128_SHA and SSL3_FORTEZZA_DMS_WITH_FORTEZZA_CBC_SHA are placeholders for backward compatibility. 
org.mozilla.jss.ssl.SSLSecurityStatus.STATUS_FORTEZZA
          As of NSS 3.11, FORTEZZA is no longer supported. STATUS_FORTEZZA is a placeholder for backward compatibility. 
org.mozilla.jss.util.NativeErrcodes.XP_SEC_FORTEZZA_BAD_CARD
          As of NSS 3.11, FORTEZZA is no longer supported. XP_SEC_FORTEZZA_BAD_CARD, XP_SEC_FORTEZZA_NO_CARD, XP_SEC_FORTEZZA_NONE_SELECTED, XP_SEC_FORTEZZA_MORE_INFO XP_SEC_FORTEZZA_PERSON_NOT_FOUND, XP_SEC_FORTEZZA_NO_MORE_INFO XP_SEC_FORTEZZA_BAD_PIN and XP_SEC_FORTEZZA_PERSON_ERROR are placeholder for backward compatibility. 
 

Deprecated Methods
org.mozilla.jss.crypto.CryptoToken.cloneKey(SymmetricKey)
          Use the JCA interface instead (SecretKeyFactory) 
org.mozilla.jss.pkcs11.PK11PubKey.fromRaw(PrivateKey.Type, byte[])
          This method works for RSA keys but not DSA or EC keys. Use fromSPKI() instead. 
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.CryptoToken.getCipherContext(EncryptionAlgorithm)
          Use the JCA interface instead (Cipher) 
org.mozilla.jss.crypto.CryptoToken.getDigestContext(DigestAlgorithm)
          Use the JCA interface instead (MessageDigest) 
org.mozilla.jss.crypto.CryptoToken.getKeyGenerator(KeyGenAlgorithm)
          Use the JCA interface instead (KeyGenerator) 
org.mozilla.jss.crypto.CryptoToken.getKeyPairGenerator(KeyPairAlgorithm)
          Use the JCA interface instead (KeyPairGenerator) 
org.mozilla.jss.crypto.CryptoToken.getKeyWrapper(KeyWrapAlgorithm)
          Use the JCA interface instead (Cipher) 
org.mozilla.jss.crypto.Algorithm.getParameterClass()
          Call getParameterClasses() instead. 
org.mozilla.jss.pkix.cmmf.RevRequest.getPassphrase()
          The passphrase field has been renamed sharedSecret. Call getSharedSecret instead. 
org.mozilla.jss.crypto.CryptoToken.getSignatureContext(SignatureAlgorithm)
          Use the JCA interface instead (Signature) 
org.mozilla.jss.crypto.TokenCertificate.getUniqueID()
          This ID is based on an implementation that might change. If this functionality is required, it should be provided in another way, such as a function that directly matches a cert and key. 
org.mozilla.jss.crypto.PrivateKey.getUniqueID()
          This ID is based on an implementation that might change. If this functionality is required, it should be provided in another way, such as a function that directly matches a cert and key. 
org.mozilla.jss.crypto.EncryptionAlgorithm.isPadded()
          Call getPaddingType() instead. 
org.mozilla.jss.ssl.SSLSocket.requireClientAuth(boolean, boolean)
          use requireClientAuth(int) 
org.mozilla.jss.ssl.SSLServerSocket.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. This method is misnamed. Use requestClientAuth instead. 
org.mozilla.jss.ssl.SSLServerSocket.setNeedClientAuth(boolean)
          As of JSS 3.0. This method is misnamed. Use requestClientAuth instead. 
org.mozilla.jss.ssl.SSLSocket.setNeedClientAuthNoExpiryCheck(boolean)
          As of JSS 3.0. This method is misnamed. Use requestClientAuthNoExpiryCheck instead. 
org.mozilla.jss.ssl.SSLServerSocket.setNeedClientAuthNoExpiryCheck(boolean)
          As of JSS 3.0. This method is misnamed. Use requestClientAuthNoExpiryCheck instead. 
org.mozilla.jss.ssl.SSLSecurityStatus.toString()
          As of NSS 3.11, FORTEZZA is no longer supported. This is just a placeholder for backward compatibility. 
 

Deprecated Constructors
org.mozilla.jss.pkix.cmmf.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(InetAddress, int, InetAddress, int, boolean, SSLCertificateApprovalCallback, SSLClientCertificateSelectionCallback)
          As of JSS 3.0. The stream parameter is ignored, because only stream sockets are supported.