| Key | KeyAgreement. 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 Key | KeyAgreementSpi. 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 SecretKey | KeyAgreementSpi. engineGenerateSecret(String algorithm) | Creates the shared secret and returns it as a secret key object
 of the requested algorithm type. | 
| protected int | CipherSpi. engineGetKeySize(Key key) | Returns the key size of the given key object in bits. | 
| protected abstract void | CipherSpi. 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 void | CipherSpi. engineInit(int opmode,
          Key key,
          SecureRandom random) | Initializes this cipher with a key and a source
 of randomness. | 
| protected abstract void | CipherSpi. engineInit(int opmode,
          Key key,
          AlgorithmParameterSpec params,
          SecureRandom random) | Initializes this cipher with a key, a set of
 algorithm parameters, and a source of randomness. | 
| protected abstract void | ExemptionMechanismSpi. engineInit(Key key) | Initializes this exemption mechanism with a key. | 
| protected abstract void | ExemptionMechanismSpi. engineInit(Key key,
          AlgorithmParameters params) | Initializes this exemption mechanism with a key and a set of algorithm
 parameters. | 
| protected abstract void | ExemptionMechanismSpi. engineInit(Key key,
          AlgorithmParameterSpec params) | Initializes this exemption mechanism with a key and a set of algorithm
 parameters. | 
| protected abstract void | KeyAgreementSpi. engineInit(Key key,
          SecureRandom random) | Initializes this key agreement with the given key and source of
 randomness. | 
| protected abstract void | KeyAgreementSpi. engineInit(Key key,
          AlgorithmParameterSpec params,
          SecureRandom random) | Initializes this key agreement with the given key, set of
 algorithm parameters, and source of randomness. | 
| protected abstract void | MacSpi. engineInit(Key key,
          AlgorithmParameterSpec params) | Initializes the MAC with the given (secret) key and algorithm
 parameters. | 
| protected abstract SecretKey | SecretKeyFactorySpi. engineTranslateKey(SecretKey key) | Translates a key object, whose provider may be unknown or
 potentially untrusted, into a corresponding key object of this
 secret-key factory. | 
| protected Key | CipherSpi. engineUnwrap(byte[] wrappedKey,
            String wrappedKeyAlgorithm,
            int wrappedKeyType) | Unwrap a previously wrapped key. | 
| protected byte[] | CipherSpi. engineWrap(Key key) | Wrap a key. | 
| SecretKey | KeyAgreement. generateSecret(String algorithm) | Creates the shared secret and returns it as a SecretKeyobject of the specified algorithm. | 
| PKCS8EncodedKeySpec | EncryptedPrivateKeyInfo. getKeySpec(Key decryptKey) | Extract the enclosed PKCS8EncodedKeySpec object from the
 encrypted data and return it. | 
| PKCS8EncodedKeySpec | EncryptedPrivateKeyInfo. getKeySpec(Key decryptKey,
          String providerName) | Extract the enclosed PKCS8EncodedKeySpec object from the
 encrypted data and return it. | 
| PKCS8EncodedKeySpec | EncryptedPrivateKeyInfo. getKeySpec(Key decryptKey,
          Provider provider) | Extract the enclosed PKCS8EncodedKeySpec object from the
 encrypted data and return it. | 
| Object | SealedObject. getObject(Key key) | Retrieves the original (encapsulated) object. | 
| Object | SealedObject. getObject(Key key,
         String provider) | Retrieves the original (encapsulated) object. | 
| void | Cipher. init(int opmode,
    Certificate certificate) | Initializes this cipher with the public key from the given certificate. | 
| void | Cipher. init(int opmode,
    Certificate certificate,
    SecureRandom random) | Initializes this cipher with the public key from the given certificate
 and
 a source of randomness. | 
| void | Cipher. init(int opmode,
    Key key) | Initializes this cipher with a key. | 
| void | Cipher. init(int opmode,
    Key key,
    AlgorithmParameters params) | Initializes this cipher with a key and a set of algorithm
 parameters. | 
| void | Cipher. init(int opmode,
    Key key,
    AlgorithmParameters params,
    SecureRandom random) | Initializes this cipher with a key, a set of algorithm
 parameters, and a source of randomness. | 
| void | Cipher. init(int opmode,
    Key key,
    SecureRandom random) | Initializes this cipher with a key and a source of randomness. | 
| void | Cipher. init(int opmode,
    Key key,
    AlgorithmParameterSpec params) | Initializes this cipher with a key and a set of algorithm
 parameters. | 
| void | Cipher. init(int opmode,
    Key key,
    AlgorithmParameterSpec params,
    SecureRandom random) | Initializes this cipher with a key, a set of algorithm
 parameters, and a source of randomness. | 
| void | ExemptionMechanism. init(Key key) | Initializes this exemption mechanism with a key. | 
| void | ExemptionMechanism. init(Key key,
    AlgorithmParameters params) | Initializes this exemption mechanism with a key and a set of algorithm
 parameters. | 
| void | ExemptionMechanism. init(Key key,
    AlgorithmParameterSpec params) | Initializes this exemption mechanism with a key and a set of algorithm
 parameters. | 
| void | KeyAgreement. init(Key key) | Initializes this key agreement with the given key, which is required to
 contain all the algorithm parameters required for this key agreement. | 
| void | KeyAgreement. init(Key key,
    SecureRandom random) | Initializes this key agreement with the given key and source of
 randomness. | 
| void | KeyAgreement. init(Key key,
    AlgorithmParameterSpec params) | Initializes this key agreement with the given key and set of
 algorithm parameters. | 
| void | KeyAgreement. init(Key key,
    AlgorithmParameterSpec params,
    SecureRandom random) | Initializes this key agreement with the given key, set of
 algorithm parameters, and source of randomness. | 
| void | Mac. init(Key key) | Initializes this Macobject with the given key. | 
| void | Mac. init(Key key,
    AlgorithmParameterSpec params) | Initializes this Macobject with the given key and
 algorithm parameters. | 
| SecretKey | SecretKeyFactory. translateKey(SecretKey key) | Translates a key object, whose provider may be unknown or potentially
 untrusted, into a corresponding key object of this secret-key factory. | 
| Key | Cipher. unwrap(byte[] wrappedKey,
      String wrappedKeyAlgorithm,
      int wrappedKeyType) | Unwrap a previously wrapped key. | 
| byte[] | Cipher. wrap(Key key) | Wrap a key. |