001/*
002 * Licensed to the Apache Software Foundation (ASF) under one
003 * or more contributor license agreements.  See the NOTICE file
004 * distributed with this work for additional information
005 * regarding copyright ownership.  The ASF licenses this file
006 * to you under the Apache License, Version 2.0 (the
007 * "License"); you may not use this file except in compliance
008 * with the License.  You may obtain a copy of the License at
009 *
010 *     http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing, software
013 * distributed under the License is distributed on an "AS IS" BASIS,
014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015 * See the License for the specific language governing permissions and
016 * limitations under the License.
017 */
018package org.apache.hadoop.hbase.keymeta;
019
020import java.io.IOException;
021import java.security.KeyException;
022import org.apache.hadoop.conf.Configuration;
023import org.apache.hadoop.hbase.io.crypto.ManagedKeyData;
024import org.apache.yetus.audience.InterfaceAudience;
025
026/**
027 * STUB IMPLEMENTATION - Feature not yet complete. This class will be fully implemented in
028 * HBASE-29368 feature PR.
029 */
030@InterfaceAudience.Private
031public class ManagedKeyDataCache {
032  public ManagedKeyDataCache(Configuration conf, KeymetaAdmin admin) {
033    // Stub constructor - does nothing
034  }
035
036  public ManagedKeyData getActiveEntry(byte[] keyCustodian, String keyNamespace) {
037    return null;
038  }
039
040  public ManagedKeyData getEntry(byte[] keyCustodian, String keyNamespace, String keyMetadata,
041    byte[] wrappedKey) throws IOException, KeyException {
042    return null;
043  }
044
045  public void clearCache() {
046    // Stub - does nothing
047  }
048
049  public void ejectEntry(byte[] keyCustodian, String keyNamespace, String keyMetadata) {
050    // Stub - does nothing
051  }
052
053  public boolean ejectKey(byte[] keyCustodian, String keyNamespace, byte[] keyMetadataHash) {
054    return false;
055  }
056}