Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR 217 (Maintenance Release)

Uses of Class
java.security.InvalidKeyException

Packages that use InvalidKeyException
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. 
 

Uses of InvalidKeyException in java.security
 

Methods in java.security that throw InvalidKeyException
protected abstract  void SignatureSpi.engineInitVerify(PublicKey publicKey)
          Initializes this signature object with the specified public key for verification operations.
protected abstract  void SignatureSpi.engineInitSign(PrivateKey privateKey)
          Initializes this signature object with the specified private key for signing operations.
protected  void SignatureSpi.engineInitSign(PrivateKey privateKey, SecureRandom random)
          Initializes this signature object with the specified private key and source of randomness for signing operations.
protected abstract  Key KeyFactorySpi.engineTranslateKey(Key key)
          Translates a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this key factory.
 void Signature.initVerify(PublicKey publicKey)
          Initializes this object for verification.
 void Signature.initVerify(Certificate certificate)
          Initializes this object for verification, using the public key from the given certificate.
 void Signature.initSign(PrivateKey privateKey)
          Initialize this object for signing.
 void Signature.initSign(PrivateKey privateKey, SecureRandom random)
          Initialize this object for signing.
 Key KeyFactory.translateKey(Key key)
          Translates a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this key factory.
 boolean SignedObject.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
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
abstract  void X509CRL.verify(PublicKey key)
          Verifies that this CRL was signed using the private key that corresponds to the given public key.
abstract  void X509CRL.verify(PublicKey key, String sigProvider)
          Verifies that this CRL was signed using the private key that corresponds to the given public key.
abstract  void Certificate.verify(PublicKey key)
          Verifies that this certificate was signed using the private key that corresponds to the specified public key.
abstract  void Certificate.verify(PublicKey key, String sigProvider)
          Verifies that this certificate was signed using the private key that corresponds to the specified public key.
 


JSR 217 (Maintenance Release)

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 217 specification.