Deprecated API


Contents
Deprecated Interfaces
org.mozilla.jss.crypto.JSSSecureRandom
          Use the JCA interface instead (SecureRandom) 
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 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 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.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. 
 

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.