All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.resourcemanager.keyvault.models.Keys Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure Key Vault Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt

The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.azure.resourcemanager.keyvault.models;

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsGettingById;
import com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsGettingByName;
import com.azure.resourcemanager.resources.fluentcore.collection.SupportsCreating;
import com.azure.resourcemanager.resources.fluentcore.collection.SupportsDeletingById;
import com.azure.resourcemanager.resources.fluentcore.collection.SupportsListing;
import reactor.core.publisher.Mono;

/** Entry point for Key Vault keys API. */
@Fluent
public interface Keys
    extends SupportsCreating,
        SupportsDeletingById,
        SupportsGettingById,
        SupportsGettingByName,
        SupportsListing {
    /**
     * Gets a Key Vault key.
     *
     * @param name the name of the key
     * @param version the version of the key
     * @return the key
     */
    Key getByNameAndVersion(String name, String version);

    /**
     * Gets a Key Vault key.
     *
     * @param name the name of the key
     * @param version the version of the key
     * @return the key
     */
    Mono getByNameAndVersionAsync(String name, String version);

    /**
     * Restores a backup key into a Key Vault key.
     *
     * @param backup the backup key
     * @return the key restored from the backup
     */
    Key restore(byte[] backup);

    /**
     * Restores a backup key into a Key Vault key.
     *
     * @param backup the backup key
     * @return the key restored from the backup
     */
    Mono restoreAsync(byte[] backup);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy