blob: 077f2c79e1512fa314bdaab0517186fc74e2fd38 [file] [log] [blame]
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import {PbEncryptedKeyset, PbKeyset} from './proto';
/**
* KeysetReader knows how to read a keyset or an encrypted keyset from some
* source.
*
*/
export interface KeysetReader {
/**
* Reads and returns a (cleartext) Keyset object from the underlying source.
*
*/
read(): PbKeyset;
/**
* Reads and returns an EncryptedKeyset from the underlying source.
*
*/
readEncrypted(): PbEncryptedKeyset;
}