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 java.util.List;
023import org.apache.hadoop.conf.Configuration;
024import org.apache.hadoop.hbase.io.crypto.ManagedKeyData;
025import org.apache.yetus.audience.InterfaceAudience;
026
027/**
028 * STUB IMPLEMENTATION - Feature not yet complete. This class will be fully implemented in
029 * HBASE-29368 feature PR.
030 */
031@InterfaceAudience.Private
032public class KeymetaAdminImpl implements KeymetaAdmin {
033
034  public KeymetaAdminImpl(Configuration conf) {
035    // Stub constructor - does nothing
036  }
037
038  public KeymetaAdminImpl(Object server) {
039    // Stub constructor - accepts any server type
040  }
041
042  @Override
043  public ManagedKeyData enableKeyManagement(byte[] keyCust, String keyNamespace)
044    throws IOException, KeyException {
045    throw new UnsupportedOperationException("KeymetaAdmin feature not yet implemented");
046  }
047
048  @Override
049  public List<ManagedKeyData> getManagedKeys(byte[] keyCust, String keyNamespace)
050    throws IOException, KeyException {
051    throw new UnsupportedOperationException("KeymetaAdmin feature not yet implemented");
052  }
053
054  @Override
055  public boolean rotateSTK() throws IOException {
056    throw new UnsupportedOperationException("KeymetaAdmin feature not yet implemented");
057  }
058
059  @Override
060  public void ejectManagedKeyDataCacheEntry(byte[] keyCustodian, String keyNamespace,
061    String keyMetadata) throws IOException {
062    throw new UnsupportedOperationException("KeymetaAdmin feature not yet implemented");
063  }
064
065  @Override
066  public void clearManagedKeyDataCache() throws IOException {
067    throw new UnsupportedOperationException("KeymetaAdmin feature not yet implemented");
068  }
069
070  @Override
071  public ManagedKeyData disableKeyManagement(byte[] keyCust, String keyNamespace)
072    throws IOException, KeyException {
073    throw new UnsupportedOperationException("KeymetaAdmin feature not yet implemented");
074  }
075
076  @Override
077  public ManagedKeyData disableManagedKey(byte[] keyCust, String keyNamespace,
078    byte[] keyMetadataHash) throws IOException, KeyException {
079    throw new UnsupportedOperationException("KeymetaAdmin feature not yet implemented");
080  }
081
082  @Override
083  public ManagedKeyData rotateManagedKey(byte[] keyCust, String keyNamespace)
084    throws IOException, KeyException {
085    throw new UnsupportedOperationException("KeymetaAdmin feature not yet implemented");
086  }
087
088  @Override
089  public void refreshManagedKeys(byte[] keyCust, String keyNamespace)
090    throws IOException, KeyException {
091    throw new UnsupportedOperationException("KeymetaAdmin feature not yet implemented");
092  }
093}