CryptographyServiceVersion.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.security.keyvault.keys.cryptography;
import com.azure.core.util.ServiceVersion;
/**
* The versions of Azure Key Vault Cryptography supported by this client library.
*/
public enum CryptographyServiceVersion implements ServiceVersion {
/**
* Service version {@code 7.0}.
*/
V7_0("7.0"),
/**
* Service version {@code 7.1}.
*/
V7_1("7.1"),
/**
* Service version {@code 7.2}.
*/
V7_2("7.2"),
/**
* Service version {@code 7.3-preview}.
*/
V7_3_PREVIEW("7.3-preview");
private final String version;
CryptographyServiceVersion(String version) {
this.version = version;
}
/**
* {@inheritDoc}
*/
@Override
public String getVersion() {
return this.version;
}
/**
* Gets the latest service version supported by this client library
*
* @return the latest {@link CryptographyServiceVersion}
*/
public static CryptographyServiceVersion getLatest() {
return V7_3_PREVIEW;
}
}