BcAsymmetricKeyUnwrapper (Bouncy Castle Library 1.54 API Specification)
Date: 2015-12-29

org.bouncycastle.operator.bc

## Class BcAsymmetricKeyUnwrapper

- java.lang.Object
- - org.bouncycastle.operator.AsymmetricKeyUnwrapper
  - - org.bouncycastle.operator.bc.BcAsymmetricKeyUnwrapper

- All Implemented Interfaces:
    KeyUnwrapper
  Direct Known Subclasses:
    BcRSAAsymmetricKeyUnwrapper

      public abstract class BcAsymmetricKeyUnwrapper
      extends AsymmetricKeyUnwrapper

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BcAsymmetricKeyUnwrapper(org.bouncycastle.asn1.x509.AlgorithmIdentifier encAlgId, org.bouncycastle.crypto.params.AsymmetricKeyParameter privateKey)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected abstract org.bouncycastle.crypto.AsymmetricBlockCipher` | `createAsymmetricUnwrapper(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm)`
    `GenericKey` | `generateUnwrappedKey(org.bouncycastle.asn1.x509.AlgorithmIdentifier encryptedKeyAlgorithm, byte[] encryptedKey)`

    - ### Methods inherited from class org.bouncycastle.operator.AsymmetricKeyUnwrapper

      `getAlgorithmIdentifier`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### BcAsymmetricKeyUnwrapper

          public BcAsymmetricKeyUnwrapper(org.bouncycastle.asn1.x509.AlgorithmIdentifier encAlgId,
                                  org.bouncycastle.crypto.params.AsymmetricKeyParameter privateKey)

  - ### Method Detail

    - #### generateUnwrappedKey

          public GenericKey generateUnwrappedKey(org.bouncycastle.asn1.x509.AlgorithmIdentifier encryptedKeyAlgorithm,
                                        byte[] encryptedKey)
                                          throws OperatorException

      Throws:
        `OperatorException`

    - #### createAsymmetricUnwrapper

          protected abstract org.bouncycastle.crypto.AsymmetricBlockCipher createAsymmetricUnwrapper(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm)