package com.atlassian.bitbucket.internal.mirroring.mirror.ssh;

import com.atlassian.fugue.Pair;

import javax.annotation.Nonnull;
import java.io.File;
import java.util.Optional;

public interface SshKeyStore {

    boolean delete(@Nonnull String keyId);

    @Nonnull
    Pair<File, String> generateKeyPair(@Nonnull String keyId, @Nonnull String label);

    @Nonnull
    Optional<File> getPrivateKey(@Nonnull String keyId);
}
