Uses of Class
org.mozilla.jss.util.Password
Packages that use Password
Package
Description
Generic cryptographic operations, such as signing and key pair generation.
Creating and interpreting PKCS #12 blobs.
Creating and interpeting PKCS #7 blobs.
Creating and interpeting CMS blobs.
Frequently-used primitive ASN.1 types, such as AlgorithmIdentifier,
PrivateKeyInfo, and X.500 Name.
-
Uses of Password in org.mozilla.jss.crypto
Fields in org.mozilla.jss.crypto declared as PasswordMethods in org.mozilla.jss.crypto that return PasswordModifier and TypeMethodDescriptionPBEKeyGenParams.getPassword()
Returns a reference to the password, not a copy.Methods in org.mozilla.jss.crypto with parameters of type PasswordModifier and TypeMethodDescriptionbyte[]
CryptoStore.getEncryptedPrivateKeyInfo
(KeyGenerator.CharToByteConverter conv, Password pw, Algorithm alg, int n, PrivateKey k) Get an encrypted private key, with optional password conversion.byte[]
CryptoStore.getEncryptedPrivateKeyInfo
(X509Certificate cert, PBEAlgorithm pbeAlg, Password pw, int iteration) Get an encrypted private key for the given cert.void
CryptoStore.importEncryptedPrivateKeyInfo
(KeyGenerator.CharToByteConverter conv, Password pw, String nickname, PublicKey pubKey, byte[] epkiBytes) Constructors in org.mozilla.jss.crypto with parameters of type PasswordModifierConstructorDescriptionPBEKeyGenParams
(Password pass, byte[] salt, int iterations) Creates PBE parameters. -
Uses of Password in org.mozilla.jss.netscape.security.pkcs
Methods in org.mozilla.jss.netscape.security.pkcs with parameters of type PasswordModifier and TypeMethodDescriptionvoid
PKCS12Util.addKeyBag
(PKCS12KeyInfo keyInfo, Password password, SEQUENCE encSafeContents) Add a private key to the PKCS #12 object.PKCS12Util.create_EPKI_with_PBE_PKCS5_PBES2
(CryptoToken token, PrivateKey privateKey, Password password) PKCS12Util.create_EPKI_with_PBE_SHA1_DES3_CBC
(CryptoToken token, PrivateKey privateKey, Password password) PKCS12Util.generatePFX
(PKCS12 pkcs12, Password password) void
PKCS12Util.getCertInfos
(PKCS12 pkcs12, PFX pfx, Password password) PKCS12Util.getKeyInfo
(SafeBag bag, Password password) Loads key bags (for IMPORT and other operations on existing PKCS #12 files).void
PKCS12Util.getKeyInfos
(PKCS12 pkcs12, PFX pfx, Password password) void
PKCS12Util.importKey
(PKCS12 pkcs12, Password password, String nickname, PKCS12KeyInfo keyInfo) PKCS12Util.loadFromByteArray
(byte[] b, Password password) PKCS12Util.loadFromFile
(String filename, Password password) void
PKCS12Util.storeCertIntoNSS
(PKCS12 pkcs12, Password password, String nickname, boolean overwrite) void
PKCS12Util.storeCertIntoNSS
(PKCS12 pkcs12, Password password, PKCS12CertInfo certInfo, boolean overwrite) Store a certificate (and key, if present) in NSSDB.void
PKCS12Util.storeIntoFile
(PKCS12 pkcs12, String filename, Password password) void
PKCS12Util.storeIntoNSS
(PKCS12 pkcs12, Password password, boolean overwrite) -
Uses of Password in org.mozilla.jss.pkcs11
Methods in org.mozilla.jss.pkcs11 with parameters of type PasswordModifier and TypeMethodDescriptionbyte[]
PK11Store.getEncryptedPrivateKeyInfo
(KeyGenerator.CharToByteConverter conv, Password pw, Algorithm alg, int n, PrivateKey k) byte[]
PK11Store.getEncryptedPrivateKeyInfo
(X509Certificate cert, PBEAlgorithm pbeAlg, Password pw, int iteration) (package private) static byte[]
Tunnel.getPasswordByteCopy
(Password pw) static byte[]
Tunnel.UtilTunnel.getPasswordByteCopy
(Password pw) void
PK11Store.importEncryptedPrivateKeyInfo
(KeyGenerator.CharToByteConverter conv, Password pw, String nickname, PublicKey pubKey, byte[] epkiBytes) -
Uses of Password in org.mozilla.jss.pkcs12
Methods in org.mozilla.jss.pkcs12 with parameters of type PasswordModifier and TypeMethodDescriptionvoid
AuthenticatedSafes.addEncryptedSafeContents
(PBEAlgorithm keyGenAlg, Password password, byte[] salt, int iterationCount, SEQUENCE safeContents) Encrypts a SafeContents and adds it to the AuthenticatedSafes.void
PFX.computeMacData
(Password password, byte[] salt, int iterationCount) Computes the macData field and adds it to the PFX.static SafeBag
SafeBag.createEncryptedPrivateKeyBag
(PrivateKeyInfo privk, String friendlyName, byte[] localKeyID, Password password) Creates a SafeBag containing a PKCS-8ShroudedKeyBag, which is an EncryptedPrivateKeyInfo.AuthenticatedSafes.getSafeContentsAt
(Password password, int index) Returns the SafeContents at the given index in the AuthenticatedSafes, decrypting it if necessary.boolean
PFX.verifyAuthSafes
(Password password, StringBuffer reason) Verifies the HMAC on the authenticated safes, using the password provided.Constructors in org.mozilla.jss.pkcs12 with parameters of type PasswordModifierConstructorDescriptionCreates a MacData by computing a HMAC on the given bytes.MacData
(Password password, byte[] macSalt, int iterations, byte[] toBeMACed, AlgorithmIdentifier algID) Creates a MacData by computing a HMAC on the given bytes. -
Uses of Password in org.mozilla.jss.pkcs7
Methods in org.mozilla.jss.pkcs7 with parameters of type PasswordModifier and TypeMethodDescriptionstatic EncryptedContentInfo
EncryptedContentInfo.createPBE
(PBEAlgorithm pbeAlg, Password password, byte[] salt, int iterationCount, KeyGenerator.CharToByteConverter charToByteConverter, byte[] toBeEncrypted) Creates a new EncryptedContentInfo, where the data is encrypted with a password-based key.byte[]
EncryptedContentInfo.decrypt
(Password pass, KeyGenerator.CharToByteConverter charToByteConverter) Decrypts the content of an EncryptedContentInfo encrypted with a PBE key. -
Uses of Password in org.mozilla.jss.pkix.cms
Methods in org.mozilla.jss.pkix.cms with parameters of type PasswordModifier and TypeMethodDescriptionstatic EncryptedContentInfo
EncryptedContentInfo.createPBE
(PBEAlgorithm pbeAlg, Password password, byte[] salt, int iterationCount, KeyGenerator.CharToByteConverter charToByteConverter, byte[] toBeEncrypted) Creates a new EncryptedContentInfo, where the data is encrypted with a password-based key.byte[]
EncryptedContentInfo.decrypt
(Password pass, KeyGenerator.CharToByteConverter charToByteConverter) Decrypts the content of an EncryptedContentInfo encrypted with a PBE key. -
Uses of Password in org.mozilla.jss.pkix.primitive
Methods in org.mozilla.jss.pkix.primitive with parameters of type PasswordModifier and TypeMethodDescriptionstatic EncryptedPrivateKeyInfo
EncryptedPrivateKeyInfo.createPBE
(PBEAlgorithm pbeAlg, Password password, byte[] salt, int iterationCount, KeyGenerator.CharToByteConverter charToByteConverter, PrivateKey pri, CryptoToken token) Creates a new EncryptedPrivateKeyInfo, where the data is encrypted with a password-based key- with wrapping/unwrapping happening on token.static EncryptedPrivateKeyInfo
EncryptedPrivateKeyInfo.createPBE
(PBEAlgorithm pbeAlg, Password password, byte[] salt, int iterationCount, KeyGenerator.CharToByteConverter charToByteConverter, PrivateKeyInfo pki) Creates a new EncryptedPrivateKeyInfo, where the data is encrypted with a password-based key.static EncryptedPrivateKeyInfo
EncryptedPrivateKeyInfo.createPBES2
(int saltLen, int kdfIterations, EncryptionAlgorithm encAlg, Password pwd, KeyGenerator.CharToByteConverter charToByteConverter, PrivateKeyInfo privateKeyInfo) Export a private key in PBES2 format, using a random PBKDF2 salt.EncryptedPrivateKeyInfo.decrypt
(Password pass, KeyGenerator.CharToByteConverter charToByteConverter) Decrypts an EncryptedPrivateKeyInfo that was encrypted with a PBE algorithm. -
Uses of Password in org.mozilla.jss.util
Methods in org.mozilla.jss.util that return PasswordModifier and TypeMethodDescriptionConsolePasswordCallback.getPasswordAgain
(PasswordCallbackInfo token) NullPasswordCallback.getPasswordAgain
(PasswordCallbackInfo info) Password.getPasswordAgain
(PasswordCallbackInfo info) An implementation ofPasswordCallback.getPasswordAgain
.PasswordCallback.getPasswordAgain
(PasswordCallbackInfo info) Tries supplying a password again.ConsolePasswordCallback.getPasswordFirstAttempt
(PasswordCallbackInfo info) NullPasswordCallback.getPasswordFirstAttempt
(PasswordCallbackInfo info) Password.getPasswordFirstAttempt
(PasswordCallbackInfo info) An implementation ofPasswordCallback.getPasswordFirstAttempt
.PasswordCallback.getPasswordFirstAttempt
(PasswordCallbackInfo info) Supplies a password.static Password
Password.readPasswordFromConsole()
Reads a password from the console with echo disabled.Methods in org.mozilla.jss.util with parameters of type PasswordModifier and TypeMethodDescriptionprotected static byte[]
Tunnel.GetPasswordByteCopy
(Password pw)