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

com.microsoft.azure.keyvault.CertificateIdentifier Maven / Gradle / Ivy

Go to download

This library has been replaced by new Azure SDKs, you can read about them at https://aka.ms/azsdkvalueprop. The latest libraries to interact with the Azure Key Vault service are: (1) https://search.maven.org/artifact/com.azure/azure-security-keyvault-keys. (2) https://search.maven.org/artifact/com.azure/azure-security-keyvault-secrets. (3) https://search.maven.org/artifact/com.azure/azure-security-keyvault-certificates. It is recommended that you move to the new package.

There is a newer version: 1.2.6
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.microsoft.azure.keyvault;

/**
 * The certificate identifier.
 */
public final class CertificateIdentifier extends ObjectIdentifier {

    /**
     * Verify whether the identifier is for certificate. 
     * @param identifier the certificate identifier
     * @return true if the identifier is the certificate identifier. False otherwise.
     */
    public static boolean isCertificateIdentifier(String identifier) {
        return ObjectIdentifier.isObjectIdentifier("certificates", identifier);
    }

    /**
     * Constructor.
     * @param vault The vault url
     * @param name the certificate name
     */
    public CertificateIdentifier(String vault, String name) {
        this(vault, name, "");
    }

    /**
     * Constructor.
     * @param vault the vault url
     * @param name the certificate name
     * @param version the certificate version
     */
    public CertificateIdentifier(String vault, String name, String version) {
        super(vault, "certificates", name, version);
    }

    /**
     * Constructor.
     * @param identifier the certificate identifier
     */
    public CertificateIdentifier(String identifier) {
        super("certificates", identifier);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy