![JAR search and dependency download from the Maven repository](/logo.png)
com.azure.security.keyvault.keys.models.KeyOperation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-security-keyvault-keys Show documentation
Show all versions of azure-security-keyvault-keys Show documentation
This module contains client library for Microsoft Azure KeyVault Keys.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.security.keyvault.keys.models;
import com.azure.core.util.ExpandableStringEnum;
import java.util.Collection;
/** JSON web key operations. For more information, see JsonWebKeyOperation. */
public final class KeyOperation extends ExpandableStringEnum {
/** Static value encrypt for KeyOperation. */
public static final KeyOperation ENCRYPT = fromString("encrypt");
/** Static value decrypt for KeyOperation. */
public static final KeyOperation DECRYPT = fromString("decrypt");
/** Static value sign for KeyOperation. */
public static final KeyOperation SIGN = fromString("sign");
/** Static value verify for KeyOperation. */
public static final KeyOperation VERIFY = fromString("verify");
/** Static value wrapKey for KeyOperation. */
public static final KeyOperation WRAP_KEY = fromString("wrapKey");
/** Static value unwrapKey for KeyOperation. */
public static final KeyOperation UNWRAP_KEY = fromString("unwrapKey");
/** Static value import for KeyOperation. */
public static final KeyOperation IMPORT = fromString("import");
/**
* Creates a new instance of KeyOperation value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public KeyOperation() {}
/**
* Creates or finds a KeyOperation from its string representation.
*
* @param name a name to look for.
* @return the corresponding KeyOperation.
*/
public static KeyOperation fromString(String name) {
return fromString(name, KeyOperation.class);
}
/**
* Gets known KeyOperation values.
*
* @return known KeyOperation values.
*/
public static Collection values() {
return values(KeyOperation.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy