SignResult Class

  • java.lang.Object
    • com.azure.security.keyvault.keys.cryptography.models.SignResult

public final class SignResult

Represents the details of sign operation result.

Constructor Summary

Constructor Description
SignResult(byte[] signature, SignatureAlgorithm algorithm, String keyId)

Creates the instance of SignResult holding the sign operation response details.

Method Summary

Modifier and Type Method and Description
SignatureAlgorithm getAlgorithm()

Get the signature algorithm used to create the signature.

String getKeyId()

Get the identifier of the key used for the verify operation

byte[] getSignature()

Get the signature created from the digest.

Methods inherited from java.lang.Object

Constructor Details

SignResult

public SignResult(byte[] signature, SignatureAlgorithm algorithm, String keyId)

Creates the instance of SignResult holding the sign operation response details.

Parameters:

signature - The signature created from the digest.
algorithm - The algorithm used to sign the digest.
keyId - The identifier of the key usd for the sign operation.

Method Details

getAlgorithm

public SignatureAlgorithm getAlgorithm()

Get the signature algorithm used to create the signature.

Returns:

The signature algorithm.

getKeyId

public String getKeyId()

Get the identifier of the key used for the verify operation

Returns:

the key identifier

getSignature

public byte[] getSignature()

Get the signature created from the digest.

Returns:

The signature.

Applies to