Uses of Class
java.security.InvalidKeyException
-
Packages that use InvalidKeyException Package Description java.security Provides the classes and interfaces for the security framework.java.security.cert Provides classes and interfaces for parsing and managing certificates, certificate revocation lists (CRLs), and certification paths.javax.crypto Provides the classes and interfaces for cryptographic operations.javax.crypto.spec Provides classes and interfaces for key specifications and algorithm parameter specifications.javax.security.cert Provides classes for public key certificates. -
-
Uses of InvalidKeyException in java.security
Methods in java.security that throw InvalidKeyException Modifier and Type Method Description protected abstract voidSignatureSpi. engineInitSign(PrivateKey privateKey)Initializes this signature object with the specified private key for signing operations.protected voidSignatureSpi. engineInitSign(PrivateKey privateKey, SecureRandom random)Initializes this signature object with the specified private key and source of randomness for signing operations.protected abstract voidSignatureSpi. engineInitVerify(PublicKey publicKey)Initializes this signature object with the specified public key for verification operations.protected abstract KeyKeyFactorySpi. engineTranslateKey(Key key)Translates a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this key factory.voidSignature. initSign(PrivateKey privateKey)Initialize this object for signing.voidSignature. initSign(PrivateKey privateKey, SecureRandom random)Initialize this object for signing.voidSignature. initVerify(Certificate certificate)Initializes this object for verification, using the public key from the given certificate.voidSignature. initVerify(PublicKey publicKey)Initializes this object for verification.KeyKeyFactory. translateKey(Key key)Translates a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this key factory.booleanSignedObject. verify(PublicKey verificationKey, Signature verificationEngine)Verifies that the signature in this SignedObject is the valid signature for the object stored inside, with the given verification key, using the designated verification engine.Constructors in java.security that throw InvalidKeyException Constructor Description SignedObject(Serializable object, PrivateKey signingKey, Signature signingEngine)Constructs a SignedObject from any Serializable object. -
Uses of InvalidKeyException in java.security.cert
Methods in java.security.cert that throw InvalidKeyException Modifier and Type Method Description abstract voidCertificate. verify(PublicKey key)Verifies that this certificate was signed using the private key that corresponds to the specified public key.abstract voidCertificate. verify(PublicKey key, String sigProvider)Verifies that this certificate was signed using the private key that corresponds to the specified public key.voidCertificate. verify(PublicKey key, Provider sigProvider)Verifies that this certificate was signed using the private key that corresponds to the specified public key.voidX509Certificate. verify(PublicKey key, Provider sigProvider)Verifies that this certificate was signed using the private key that corresponds to the specified public key.abstract voidX509CRL. verify(PublicKey key)Verifies that this CRL was signed using the private key that corresponds to the given public key.abstract voidX509CRL. verify(PublicKey key, String sigProvider)Verifies that this CRL was signed using the private key that corresponds to the given public key.voidX509CRL. verify(PublicKey key, Provider sigProvider)Verifies that this CRL was signed using the private key that corresponds to the given public key. -
Uses of InvalidKeyException in javax.crypto
Methods in javax.crypto that throw InvalidKeyException Modifier and Type Method Description KeyKeyAgreement. doPhase(Key key, boolean lastPhase)Executes the next phase of this key agreement with the given key that was received from one of the other parties involved in this key agreement.protected abstract KeyKeyAgreementSpi. engineDoPhase(Key key, boolean lastPhase)Executes the next phase of this key agreement with the given key that was received from one of the other parties involved in this key agreement.protected abstract SecretKeyKeyAgreementSpi. engineGenerateSecret(String algorithm)Creates the shared secret and returns it as a secret key object of the requested algorithm type.protected intCipherSpi. engineGetKeySize(Key key)Returns the key size of the given key object in bits.protected abstract voidCipherSpi. engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random)Initializes this cipher with a key, a set of algorithm parameters, and a source of randomness.protected abstract voidCipherSpi.
-