Uses of Interface
org.mozilla.jss.crypto.PrivateKey
Packages that use PrivateKey
Package
Description
Configuration and top-level operations of the JSS system.
Generic cryptographic operations, such as signing and key pair generation.
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 PrivateKey in org.mozilla.jss
Methods in org.mozilla.jss that return PrivateKeyModifier and TypeMethodDescriptionCryptoManager.findPrivKeyByCert
(X509Certificate cert) Looks up the PrivateKey matching the given certificate.protected PrivateKey
CryptoManager.findPrivKeyByCertNative
(X509Certificate cert) -
Uses of PrivateKey in org.mozilla.jss.crypto
Methods in org.mozilla.jss.crypto that return PrivateKeyModifier and TypeMethodDescriptionCryptoStore.getPrivateKeys()
Returns all private keys stored on this token.CryptoStore.importPrivateKey
(byte[] key, PrivateKey.Type type) Imports a raw private key into this token (permanently).CryptoStore.importPrivateKey
(byte[] key, PrivateKey.Type type, boolean temporary) Imports a raw private key into this token.KeyWrapper.unwrapPrivate
(byte[] wrapped, PrivateKey.Type type, PublicKey publicKey) Unwraps a private key, creating a permanent private key object.KeyWrapper.unwrapTemporaryPrivate
(byte[] wrapped, PrivateKey.Type type, PublicKey publicKey) Unwraps a private key, creating a temporary private key object.Methods in org.mozilla.jss.crypto with parameters of type PrivateKeyModifier and TypeMethodDescriptionvoid
CryptoStore.deletePrivateKey
(PrivateKey privateKey) Permanently deletes a private key from the token.abstract void
SignatureSpi.engineInitSign
(PrivateKey privateKey) abstract void
SignatureSpi.engineInitSign
(PrivateKey privateKey, SecureRandom random) CryptoStore.findPublicKey
(PrivateKey privateKey) Returns the public key corresponding to the private key.byte[]
CryptoStore.getEncryptedPrivateKeyInfo
(KeyGenerator.CharToByteConverter conv, Password pw, Algorithm alg, int n, PrivateKey k) Get an encrypted private key, with optional password conversion.void
Signature.initSign
(PrivateKey privateKey) Initialize the signature context for signing.void
KeyWrapper.initUnwrap
(PrivateKey unwrappingKey, AlgorithmParameterSpec parameters) byte[]
KeyWrapper.wrap
(PrivateKey toBeWrapped) -
Uses of PrivateKey in org.mozilla.jss.netscape.security.pkcs
Fields in org.mozilla.jss.netscape.security.pkcs declared as PrivateKeyMethods in org.mozilla.jss.netscape.security.pkcs that return PrivateKeyMethods in org.mozilla.jss.netscape.security.pkcs with parameters of type PrivateKeyModifier and TypeMethodDescriptionPKCS12Util.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.createKeyInfoFromNSS
(X509Certificate cert, PrivateKey privateKey) PKCS12Util.createKeyInfoFromNSS
(X509Certificate cert, PrivateKey privateKey, String friendlyName) Constructors in org.mozilla.jss.netscape.security.pkcs with parameters of type PrivateKey -
Uses of PrivateKey in org.mozilla.jss.pkcs11
Classes in org.mozilla.jss.pkcs11 that implement PrivateKeyModifier and TypeClassDescriptionclass
class
class
class
Fields in org.mozilla.jss.pkcs11 declared as PrivateKeyMethods in org.mozilla.jss.pkcs11 that return PrivateKeyModifier and TypeMethodDescriptionprivate PrivateKey
PK11KeyWrapper.baseUnwrapPrivate
(byte[] wrapped, PrivateKey.Type type, PublicKey publicKey, boolean temporary) PK11Store.getPrivateKeys()
PK11Store.importPrivateKey
(byte[] key, PrivateKey.Type type) Imports a raw private key into this token.PK11Store.importPrivateKey
(byte[] key, PrivateKey.Type type, boolean temporary) private static PrivateKey
PK11KeyWrapper.nativeUnwrapPrivWithSym
(PK11Token token, SymmetricKey unwrappingKey, byte[] wrappedKey, KeyWrapAlgorithm alg, Algorithm type, byte[] publicValue, byte[] IV, boolean temporary) Unwrap a private with a symmetric.PK11KeyWrapper.unwrapPrivate
(byte[] wrapped, PrivateKey.Type type, PublicKey publicKey) Unwraps a private key, creating a permanent private key object.PK11KeyWrapper.unwrapTemporaryPrivate
(byte[] wrapped, PrivateKey.Type type, PublicKey publicKey) Unwraps a private key, creating a temporary private key object.Methods in org.mozilla.jss.pkcs11 with parameters of type PrivateKeyModifier and TypeMethodDescriptionprivate void
PK11KeyWrapper.checkWrappee
(PrivateKey privKey) Makes sure the key lives on the right token.private void
PK11KeyWrapper.checkWrapper
(PrivateKey key) Makes sure the key is on the token and is right for the algorithm.void
PK11Store.deletePrivateKey
(PrivateKey privateKey) void
PK11Signature.engineInitSign
(PrivateKey privateKey) void
PK11Signature.engineInitSign
(PrivateKey privateKey, SecureRandom random) This is just here for JCA compliance, we don't take randoms this way.private static byte[]
PK11Signature.engineRawSignNative
(PK11Token token, PrivateKey key, byte[] hash) Performs raw signing of the given hash with the given private key.PK11Store.findPublicKey
(PrivateKey privateKey) byte[]
PK11Store.getEncryptedPrivateKeyInfo
(KeyGenerator.CharToByteConverter conv, Password pw, Algorithm alg, int n, PrivateKey k) void
PK11KeyWrapper.initUnwrap
(PrivateKey unwrappingKey, AlgorithmParameterSpec parameters) private static SymmetricKey
PK11KeyWrapper.nativeUnwrapSymWithPriv
(PK11Token token, PrivateKey unwrappingKey, byte[] wrappedKey, KeyWrapAlgorithm alg, Algorithm type, int keyLen, NativeProxy params, long params_size, int usageEnum) Unwrap a symmetric with a private.private static byte[]
PK11KeyWrapper.nativeWrapPrivWithSym
(PK11Token token, PrivateKey toBeWrapped, SymmetricKey wrappingKey, KeyWrapAlgorithm alg, byte[] IV) Wrap a private with a symmetricbyte[]
PK11KeyWrapper.wrap
(PrivateKey toBeWrapped) Method parameters in org.mozilla.jss.pkcs11 with type arguments of type PrivateKeyModifier and TypeMethodDescriptionprotected void
PK11Store.loadPrivateKeys
(Collection<PrivateKey> privateKeys) -
Uses of PrivateKey in org.mozilla.jss.pkcs7
Constructors in org.mozilla.jss.pkcs7 with parameters of type PrivateKeyModifierConstructorDescriptionSignerInfo
(IssuerAndSerialNumber issuerAndSerialNumber, SET authenticatedAttributes, SET unauthenticatedAttributes, OBJECT_IDENTIFIER contentType, byte[] messageDigest, SignatureAlgorithm signingAlg, PrivateKey signingKey) A constructor for creating a new SignerInfo from scratch. -
Uses of PrivateKey in org.mozilla.jss.pkix.cms
Constructors in org.mozilla.jss.pkix.cms with parameters of type PrivateKeyModifierConstructorDescriptionSignerInfo
(SignerIdentifier signerIdentifier, SET signedAttributes, SET unsignedAttributes, OBJECT_IDENTIFIER contentType, byte[] messageDigest, SignatureAlgorithm signingAlg, PrivateKey signingKey) A constructor for creating a new SignerInfo from scratch. -
Uses of PrivateKey in org.mozilla.jss.pkix.primitive
Methods in org.mozilla.jss.pkix.primitive with parameters of type PrivateKeyModifier 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. -
Uses of PrivateKey in org.mozilla.jss.ssl.javax
Constructors in org.mozilla.jss.ssl.javax with parameters of type PrivateKeyModifierConstructorDescriptionJSSEngine
(String peerHost, int peerPort, X509Certificate localCert, PrivateKey localKey) Constructor for a JSSEngine, providing hints for an internal session reuse strategy (the peer's hostname and port), along with a chosen certificate and key to use.JSSEngineReferenceImpl
(String peerHost, int peerPort, X509Certificate localCert, PrivateKey localKey)