com.microsoft.azure.keyvault.webkey.JsonWebKeyEncryptionAlgorithm Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-keyvault-webkey Show documentation
Show all versions of azure-keyvault-webkey Show documentation
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.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure.keyvault.webkey;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* Defines values for JsonWebKeyEncryptionAlgorithm.
*/
public final class JsonWebKeyEncryptionAlgorithm {
/** Static value RSA-OAEP for JsonWebKeyEncryptionAlgorithm. */
public static final JsonWebKeyEncryptionAlgorithm RSA_OAEP = new JsonWebKeyEncryptionAlgorithm("RSA-OAEP");
/** Static value RSA1_5 for JsonWebKeyEncryptionAlgorithm. */
public static final JsonWebKeyEncryptionAlgorithm RSA1_5 = new JsonWebKeyEncryptionAlgorithm("RSA1_5");
private String value;
/**
* Creates a custom value for JsonWebKeyEncryptionAlgorithm.
* @param value the custom value
*/
public JsonWebKeyEncryptionAlgorithm(String value) {
this.value = value;
}
@JsonValue
@Override
public String toString() {
return value;
}
@Override
public int hashCode() {
return value.hashCode();
}
@Override
public boolean equals(Object obj) {
if (!(obj instanceof JsonWebKeyEncryptionAlgorithm)) {
return false;
}
if (obj == this) {
return true;
}
JsonWebKeyEncryptionAlgorithm rhs = (JsonWebKeyEncryptionAlgorithm) obj;
if (value == null) {
return rhs.value == null;
} else {
return value.equals(rhs.value);
}
}
/**
* All the JWK encryption algorithms.
*/
public static final List ALL_ALGORITHMS =
Collections.unmodifiableList(Arrays.asList(RSA_OAEP, RSA1_5));
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy