|
|
<?xml version='1.0' encoding='UTF-8' standalone='no'?> |
|
|
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.8.17"> |
|
|
<compounddef id="AesGcmOutputFile_8java" kind="file" language="Java"> |
|
|
<compoundname>AesGcmOutputFile.java</compoundname> |
|
|
<innerclass refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile" prot="public">org::apache::iceberg::encryption::AesGcmOutputFile</innerclass> |
|
|
<innernamespace refid="namespaceorg_1_1apache_1_1iceberg_1_1encryption">org::apache::iceberg::encryption</innernamespace> |
|
|
<briefdescription> |
|
|
</briefdescription> |
|
|
<detaileddescription> |
|
|
</detaileddescription> |
|
|
<programlisting> |
|
|
<codeline lineno="1"><highlight class="comment">/*</highlight></codeline> |
|
|
<codeline lineno="2"><highlight class="comment"><sp/>*<sp/>Licensed<sp/>to<sp/>the<sp/>Apache<sp/>Software<sp/>Foundation<sp/>(ASF)<sp/>under<sp/>one</highlight></codeline> |
|
|
<codeline lineno="3"><highlight class="comment"><sp/>*<sp/>or<sp/>more<sp/>contributor<sp/>license<sp/>agreements.<sp/><sp/>See<sp/>the<sp/>NOTICE<sp/>file</highlight></codeline> |
|
|
<codeline lineno="4"><highlight class="comment"><sp/>*<sp/>distributed<sp/>with<sp/>this<sp/>work<sp/>for<sp/>additional<sp/>information</highlight></codeline> |
|
|
<codeline lineno="5"><highlight class="comment"><sp/>*<sp/>regarding<sp/>copyright<sp/>ownership.<sp/><sp/>The<sp/>ASF<sp/>licenses<sp/>this<sp/>file</highlight></codeline> |
|
|
<codeline lineno="6"><highlight class="comment"><sp/>*<sp/>to<sp/>you<sp/>under<sp/>the<sp/>Apache<sp/>License,<sp/>Version<sp/>2.0<sp/>(the</highlight></codeline> |
|
|
<codeline lineno="7"><highlight class="comment"><sp/>*<sp/>"License");<sp/>you<sp/>may<sp/>not<sp/>use<sp/>this<sp/>file<sp/>except<sp/>in<sp/>compliance</highlight></codeline> |
|
|
<codeline lineno="8"><highlight class="comment"><sp/>*<sp/>with<sp/>the<sp/>License.<sp/><sp/>You<sp/>may<sp/>obtain<sp/>a<sp/>copy<sp/>of<sp/>the<sp/>License<sp/>at</highlight></codeline> |
|
|
<codeline lineno="9"><highlight class="comment"><sp/>*</highlight></codeline> |
|
|
<codeline lineno="10"><highlight class="comment"><sp/>*<sp/><sp/><sp/>http://www.apache.org/licenses/LICENSE-2.0</highlight></codeline> |
|
|
<codeline lineno="11"><highlight class="comment"><sp/>*</highlight></codeline> |
|
|
<codeline lineno="12"><highlight class="comment"><sp/>*<sp/>Unless<sp/>required<sp/>by<sp/>applicable<sp/>law<sp/>or<sp/>agreed<sp/>to<sp/>in<sp/>writing,</highlight></codeline> |
|
|
<codeline lineno="13"><highlight class="comment"><sp/>*<sp/>software<sp/>distributed<sp/>under<sp/>the<sp/>License<sp/>is<sp/>distributed<sp/>on<sp/>an</highlight></codeline> |
|
|
<codeline lineno="14"><highlight class="comment"><sp/>*<sp/>"AS<sp/>IS"<sp/>BASIS,<sp/>WITHOUT<sp/>WARRANTIES<sp/>OR<sp/>CONDITIONS<sp/>OF<sp/>ANY</highlight></codeline> |
|
|
<codeline lineno="15"><highlight class="comment"><sp/>*<sp/>KIND,<sp/>either<sp/>express<sp/>or<sp/>implied.<sp/><sp/>See<sp/>the<sp/>License<sp/>for<sp/>the</highlight></codeline> |
|
|
<codeline lineno="16"><highlight class="comment"><sp/>*<sp/>specific<sp/>language<sp/>governing<sp/>permissions<sp/>and<sp/>limitations</highlight></codeline> |
|
|
<codeline lineno="17"><highlight class="comment"><sp/>*<sp/>under<sp/>the<sp/>License.</highlight></codeline> |
|
|
<codeline lineno="18"><highlight class="comment"><sp/>*/</highlight><highlight class="normal"></highlight></codeline> |
|
|
<codeline lineno="19"><highlight class="normal"></highlight><highlight class="keyword">package<sp/></highlight><highlight class="normal">org.apache.iceberg.encryption;</highlight></codeline> |
|
|
<codeline lineno="20"><highlight class="normal"></highlight></codeline> |
|
|
<codeline lineno="21"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/><ref refid="namespaceorg" kindref="compound">org</ref>.<ref refid="namespaceorg_1_1apache" kindref="compound">apache</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg" kindref="compound">iceberg</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg_1_1io" kindref="compound">io</ref>.<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1io_1_1InputFile" kindref="compound">InputFile</ref>;</highlight></codeline> |
|
|
<codeline lineno="22"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/><ref refid="namespaceorg" kindref="compound">org</ref>.<ref refid="namespaceorg_1_1apache" kindref="compound">apache</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg" kindref="compound">iceberg</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg_1_1io" kindref="compound">io</ref>.<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1io_1_1OutputFile" kindref="compound">OutputFile</ref>;</highlight></codeline> |
|
|
<codeline lineno="23"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/><ref refid="namespaceorg" kindref="compound">org</ref>.<ref refid="namespaceorg_1_1apache" kindref="compound">apache</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg" kindref="compound">iceberg</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg_1_1io" kindref="compound">io</ref>.<ref refid="classorg_1_1apache_1_1iceberg_1_1io_1_1PositionOutputStream" kindref="compound">PositionOutputStream</ref>;</highlight></codeline> |
|
|
<codeline lineno="24"><highlight class="normal"></highlight></codeline> |
|
|
<codeline lineno="25" refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile" kindref="compound">AesGcmOutputFile</ref><sp/></highlight><highlight class="keyword">implements</highlight><highlight class="normal"><sp/><ref refid="interfaceorg_1_1apache_1_1iceberg_1_1io_1_1OutputFile" kindref="compound">OutputFile</ref><sp/>{</highlight></codeline> |
|
|
<codeline lineno="26" refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile_1ad8980bb6ad7f746f77f4d770cdff945d" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">final</highlight><highlight class="normal"><sp/><ref refid="interfaceorg_1_1apache_1_1iceberg_1_1io_1_1OutputFile" kindref="compound">OutputFile</ref><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile_1ad8980bb6ad7f746f77f4d770cdff945d" kindref="member">targetFile</ref>;</highlight></codeline> |
|
|
<codeline lineno="27" refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile_1a7c6b9cf13b2896ca66a20f858fe872a5" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">final</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">byte</highlight><highlight class="normal">[]<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile_1a7c6b9cf13b2896ca66a20f858fe872a5" kindref="member">dataKey</ref>;</highlight></codeline> |
|
|
<codeline lineno="28" refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile_1a8948310d1abccdd83dff270a1398c302" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">final</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">byte</highlight><highlight class="normal">[]<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile_1a8948310d1abccdd83dff270a1398c302" kindref="member">fileAADPrefix</ref>;</highlight></codeline> |
|
|
<codeline lineno="29"><highlight class="normal"></highlight></codeline> |
|
|
<codeline lineno="30" refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile_1a7b185cdd34ae06f12b97ca246535b89d" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile_1a7b185cdd34ae06f12b97ca246535b89d" kindref="member">AesGcmOutputFile</ref>(<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1io_1_1OutputFile" kindref="compound">OutputFile</ref><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile_1ad8980bb6ad7f746f77f4d770cdff945d" kindref="member">targetFile</ref>,<sp/></highlight><highlight class="keywordtype">byte</highlight><highlight class="normal">[]<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile_1a7c6b9cf13b2896ca66a20f858fe872a5" kindref="member">dataKey</ref>,<sp/></highlight><highlight class="keywordtype">byte</highlight><highlight class="normal">[]<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile_1a8948310d1abccdd83dff270a1398c302" kindref="member">fileAADPrefix</ref>)<sp/>{</highlight></codeline> |
|
|
<codeline lineno="31"><highlight class="normal"><sp/><sp/><sp/><sp/>this.targetFile<sp/>=<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile_1ad8980bb6ad7f746f77f4d770cdff945d" kindref="member">targetFile</ref>;</highlight></codeline> |
|
|
<codeline lineno="32"><highlight class="normal"><sp/><sp/><sp/><sp/>this.dataKey<sp/>=<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile_1a7c6b9cf13b2896ca66a20f858fe872a5" kindref="member">dataKey</ref>;</highlight></codeline> |
|
|
<codeline lineno="33"><highlight class="normal"><sp/><sp/><sp/><sp/>this.fileAADPrefix<sp/>=<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile_1a8948310d1abccdd83dff270a1398c302" kindref="member">fileAADPrefix</ref>;</highlight></codeline> |
|
|
<codeline lineno="34"><highlight class="normal"><sp/><sp/>}</highlight></codeline> |
|
|
<codeline lineno="35"><highlight class="normal"></highlight></codeline> |
|
|
<codeline lineno="36"><highlight class="normal"><sp/><sp/>@Override</highlight></codeline> |
|
|
<codeline lineno="37" refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile_1a3329b337b860c910bbc6295cef0f0b1f" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1io_1_1PositionOutputStream" kindref="compound">PositionOutputStream</ref><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile_1a3329b337b860c910bbc6295cef0f0b1f" kindref="member">create</ref>()<sp/>{</highlight></codeline> |
|
|
<codeline lineno="38"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">new</highlight><highlight class="normal"><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputStream" kindref="compound">AesGcmOutputStream</ref>(<ref refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile_1ad8980bb6ad7f746f77f4d770cdff945d" kindref="member">targetFile</ref>.<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1io_1_1OutputFile_1abd61f39f96a5040fbb32d06af7d700ab" kindref="member">create</ref>(),<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile_1a7c6b9cf13b2896ca66a20f858fe872a5" kindref="member">dataKey</ref>,<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile_1a8948310d1abccdd83dff270a1398c302" kindref="member">fileAADPrefix</ref>);</highlight></codeline> |
|
|
<codeline lineno="39"><highlight class="normal"><sp/><sp/>}</highlight></codeline> |
|
|
<codeline lineno="40"><highlight class="normal"></highlight></codeline> |
|
|
<codeline lineno="41"><highlight class="normal"><sp/><sp/>@Override</highlight></codeline> |
|
|
<codeline lineno="42" refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile_1af284bb48a97b65fc5dab19d92e55dd94" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1io_1_1PositionOutputStream" kindref="compound">PositionOutputStream</ref><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile_1af284bb48a97b65fc5dab19d92e55dd94" kindref="member">createOrOverwrite</ref>()<sp/>{</highlight></codeline> |
|
|
<codeline lineno="43"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">new</highlight><highlight class="normal"><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputStream" kindref="compound">AesGcmOutputStream</ref>(<ref refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile_1ad8980bb6ad7f746f77f4d770cdff945d" kindref="member">targetFile</ref>.<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1io_1_1OutputFile_1a98df1f0f31f0073aad13be5f34011c5d" kindref="member">createOrOverwrite</ref>(),<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile_1a7c6b9cf13b2896ca66a20f858fe872a5" kindref="member">dataKey</ref>,<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile_1a8948310d1abccdd83dff270a1398c302" kindref="member">fileAADPrefix</ref>);</highlight></codeline> |
|
|
<codeline lineno="44"><highlight class="normal"><sp/><sp/>}</highlight></codeline> |
|
|
<codeline lineno="45"><highlight class="normal"></highlight></codeline> |
|
|
<codeline lineno="46"><highlight class="normal"><sp/><sp/>@Override</highlight></codeline> |
|
|
<codeline lineno="47" refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile_1ace4ff9733f7bff721b741a593ebf6b8d" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/>String<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile_1ace4ff9733f7bff721b741a593ebf6b8d" kindref="member">location</ref>()<sp/>{</highlight></codeline> |
|
|
<codeline lineno="48"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile_1ad8980bb6ad7f746f77f4d770cdff945d" kindref="member">targetFile</ref>.<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1io_1_1OutputFile_1aed26d2ade3d77f0ea8ee2b0afb18cdbf" kindref="member">location</ref>();</highlight></codeline> |
|
|
<codeline lineno="49"><highlight class="normal"><sp/><sp/>}</highlight></codeline> |
|
|
<codeline lineno="50"><highlight class="normal"></highlight></codeline> |
|
|
<codeline lineno="51"><highlight class="normal"><sp/><sp/>@Override</highlight></codeline> |
|
|
<codeline lineno="52" refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile_1a0aee230849b6f67ba71675d48061097f" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/><ref refid="interfaceorg_1_1apache_1_1iceberg_1_1io_1_1InputFile" kindref="compound">InputFile</ref><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile_1a0aee230849b6f67ba71675d48061097f" kindref="member">toInputFile</ref>()<sp/>{</highlight></codeline> |
|
|
<codeline lineno="53"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">new</highlight><highlight class="normal"><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmInputFile" kindref="compound">AesGcmInputFile</ref>(<ref refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile_1ad8980bb6ad7f746f77f4d770cdff945d" kindref="member">targetFile</ref>.<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1io_1_1OutputFile_1a3a8fa81602d403db5dc5fb3c3ca44ed3" kindref="member">toInputFile</ref>(),<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile_1a7c6b9cf13b2896ca66a20f858fe872a5" kindref="member">dataKey</ref>,<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1AesGcmOutputFile_1a8948310d1abccdd83dff270a1398c302" kindref="member">fileAADPrefix</ref>);</highlight></codeline> |
|
|
<codeline lineno="54"><highlight class="normal"><sp/><sp/>}</highlight></codeline> |
|
|
<codeline lineno="55"><highlight class="normal">}</highlight></codeline> |
|
|
</programlisting> |
|
|
<location file="core/src/main/java/org/apache/iceberg/encryption/AesGcmOutputFile.java"/> |
|
|
</compounddef> |
|
|
</doxygen> |
|
|
|