Package org.mozilla.jss.crypto
Generic cryptographic operations, such as signing and key pair generation.
-
Interface Summary Interface Description CryptoStore This is an interface for a permanent repository of cryptographic objects, such as keys, certs, and passwords.CryptoToken A CryptoToken performs cryptographic operations and stores cryptographic items, such as keys and certs.InternalCertificate Certificates residing in the internal database.JSSSecureRandom An interface for secure random numbers.KeyGenAlgorithm.KeyStrengthValidator KeyGenerator Generates symmetric keys for encryption and decryption.KeyGenerator.CharToByteConverter An interface for converting a password of Java characters into an array of bytes.KeyWrapper PrivateKey Private Keys used by JSS.SymmetricKey SymmetricKeyDeriver TokenCertificate An X509 Certificate that lives on a PKCS #11 token.TokenSupplier An interface that allows providers to access CryptoManager without actually knowing about CryptoManager.X509Certificate Certificates handled by JSS. -
Class Summary Class Description Algorithm Represents a cryptographic algorithm.Cipher A context for performing symmetric encryption and decryption.CMACAlgorithm Algorithms for performing CMACs.DigestAlgorithm EncryptionAlgorithm An algorithm for performing symmetric encryption.EncryptionAlgorithm.Alg EncryptionAlgorithm.Mode EncryptionAlgorithm.Padding HMACAlgorithm Algorithms for performing HMACs.IVParameterSpec An algorithm parameter that consists of an initialization vector (IV).JSSMessageDigest A class for performing message digesting (hashing) and MAC operations.KeyGenAlgorithm Algorithms that can be used for generating symmetric keys.KeyGenAlgorithm.FixedKeyStrengthValidator KeyPairAlgorithm Algorithms that can be used for keypair generation.KeyPairGenerator Generates RSA and DSA key pairs.KeyPairGeneratorSpi KeyPairGeneratorSpi.Usage In PKCS #11, each keypair can be marked with the operations it will be used to perform.KeyWrapAlgorithm PBEAlgorithm Algorithms that can be used for generating symmetric keys from passwords.PBEKeyGenParams PQGParams PQG parameters for DSA key generation, along with the seed, counter, and H values for verification.PrivateKey.Type RSAParameterSpec This class specifies the parameters used for generating an RSA key pair.SecretDecoderRing This is a special-purpose interface for NSS.SecretKeyFacade Signature A class for producing and verifying digital signatures.SignatureAlgorithm Algorithms that can be used for signing.SignatureSpi You don't need to use this unless you are hacking JSS.SymmetricKey.Type SymmetricKey.Usage In PKCS #11, each key can be marked with the operations it will be used to perform.TokenSupplierManager The org.mozilla.jss.provider package comes before CryptoManager in the dependency list, so this class is used to allow them to access CryptoManager sneakily.Tunnel This is a private JSS class that allows the pkcs11 package access to some of the package methods in the crypto package. -
Enum Summary Enum Description PKCS11Algorithm -
Exception Summary Exception Description AlreadyInitializedException This exception is thrown if an initialization operation is attempted on something that is already initialized.BadPaddingException Deprecated. Use javax.crypto.BadPaddingException.IllegalBlockSizeException InvalidDERException This exception is thrown when we encounter a bogus DER blob.InvalidKeyFormatException An exception of this type is thrown if an encoded private key cannot be decoded.KeyAlreadyImportedException This exception is thrown if the user tries to import a key which is already in the specified tokenNoSuchItemOnTokenException Thrown if a cryptographic item does not exist on the token it is trying to be used on.NoSuchPaddingException This class is a stub for javax.crypto.NoSuchPaddingException until we move to JDK 1.2.ObjectNotFoundException This exception is thrown whenever something isn't implemented.PQGParamGenException ShortBufferException This class is a placeholder for javax.crypto.ShortBufferException until we move to JDK 1.2.SymmetricKey.NotExtractableException TokenException This class indicates that an unknown error occurred on a CryptoToken.TokenRuntimeException This class indicates that an unknown error occurred on a CryptoToken.