LocalKey (ORC Shims 1.6.6 API)
Date: 2021-01-13

org.apache.orc.impl

## Class LocalKey

- java.lang.Object
- - org.apache.orc.impl.LocalKey

-     public class LocalKey
      extends Object

  Local keys are random keys that are generated for each file and column. The file's metadata includes the encryptedKey and the reader needs to use the KeyProvider to get the decryptedKey.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `LocalKey(EncryptionAlgorithm algorithm, byte[] decryptedKey, byte[] encryptedKey)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Key` | `getDecryptedKey()`
    `byte[]` | `getEncryptedKey()`
    `void` | `setDecryptedKey(Key key)`

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

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

- - ### Constructor Detail

    - #### LocalKey

          public LocalKey(EncryptionAlgorithm algorithm,
                          byte[] decryptedKey,
                          byte[] encryptedKey)

  - ### Method Detail

    - #### setDecryptedKey

          public void setDecryptedKey(Key key)

    - #### getDecryptedKey

          public Key getDecryptedKey()

    - #### getEncryptedKey

          public byte[] getEncryptedKey()

Copyright © 2013–2021 The Apache Software Foundation. All rights reserved.