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.hbase.client.Connection;
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 KeymetaAdminClient implements KeymetaAdmin {
033
034  public KeymetaAdminClient(Connection conn) throws IOException {
035    // Stub constructor
036  }
037
038  @Override
039  public ManagedKeyData enableKeyManagement(byte[] keyCust, String keyNamespace)
040    throws IOException, KeyException {
041    throw new UnsupportedOperationException("KeymetaAdmin feature not yet implemented");
042  }
043
044  @Override
045  public List<ManagedKeyData> getManagedKeys(byte[] keyCust, String keyNamespace)
046    throws IOException, KeyException {
047    throw new UnsupportedOperationException("KeymetaAdmin feature not yet implemented");
048  }
049
050  @Override
051  public boolean rotateSTK() throws IOException {
052    throw new UnsupportedOperationException("KeymetaAdmin feature not yet implemented");
053  }
054
055  @Override
056  public void ejectManagedKeyDataCacheEntry(byte[] keyCustodian, String keyNamespace,
057    String keyMetadata) throws IOException {
058    throw new UnsupportedOperationException("KeymetaAdmin feature not yet implemented");
059  }
060
061  @Override
062  public void clearManagedKeyDataCache() throws IOException {
063    throw new UnsupportedOperationException("KeymetaAdmin feature not yet implemented");
064  }
065
066  @Override
067  public ManagedKeyData disableKeyManagement(byte[] keyCust, String keyNamespace)
068    throws IOException, KeyException {
069    throw new UnsupportedOperationException("KeymetaAdmin feature not yet implemented");
070  }
071
072  @Override
073  public ManagedKeyData disableManagedKey(byte[] keyCust, String keyNamespace,
074    byte[] keyMetadataHash) throws IOException, KeyException {
075    throw new UnsupportedOperationException("KeymetaAdmin feature not yet implemented");
076  }
077
078  @Override
079  public ManagedKeyData rotateManagedKey(byte[] keyCust, String keyNamespace)
080    throws IOException, KeyException {
081    throw new UnsupportedOperationException("KeymetaAdmin feature not yet implemented");
082  }
083
084  @Override
085  public void refreshManagedKeys(byte[] keyCust, String keyNamespace)
086    throws IOException, KeyException {
087    throw new UnsupportedOperationException("KeymetaAdmin feature not yet implemented");
088  }
089}