KeyOperationResult.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.Base64Url;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* The key operation result.
*/
class KeyOperationResult {
/**
* Key identifier.
*/
@JsonProperty(value = "kid", access = JsonProperty.Access.WRITE_ONLY)
private String kid;
/**
* The result property.
*/
@JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY)
private Base64Url result;
/**
* Get the kid value.
*
* @return the kid value
*/
public String getKid() {
return this.kid;
}
/**
* Get the result value.
*
* @return the result value
*/
public byte[] getResult() {
if (this.result == null) {
return new byte[0];
}
return this.result.decodedBytes();
}
}