class RecoverableKeyStoreSecondaryKeyManager {

    public Optional<RecoverableKeyStoreSecondaryKey> get(String alias)
            throws InternalRecoveryServiceException, UnrecoverableKeyException {
        SecretKey secretKey = (SecretKey) mRecoveryController.getKey(alias);
        return Optional.ofNullable(secretKey)
                .map(key -> new RecoverableKeyStoreSecondaryKey(alias, key));
    }

    @VisibleForTesting public  RecoverableKeyStoreSecondaryKeyManager(
            RecoveryController recoveryController, SecureRandom secureRandom);

}