/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the kms-2014-11-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.KeyManagementService.Model
{
///
/// This is the response object from the Verify operation.
///
public partial class VerifyResponse : AmazonWebServiceResponse
{
private string _keyId;
private bool? _signatureValid;
private SigningAlgorithmSpec _signingAlgorithm;
///
/// Gets and sets the property KeyId.
///
/// The Amazon Resource Name (key
/// ARN) of the asymmetric KMS key that was used to verify the signature.
///
///
[AWSProperty(Min=1, Max=2048)]
public string KeyId
{
get { return this._keyId; }
set { this._keyId = value; }
}
// Check to see if KeyId property is set
internal bool IsSetKeyId()
{
return this._keyId != null;
}
///
/// Gets and sets the property SignatureValid.
///
/// A Boolean value that indicates whether the signature was verified. A value of True
/// indicates that the Signature
was produced by signing the Message
/// with the specified KeyID
and SigningAlgorithm.
If the signature
/// is not verified, the Verify
operation fails with a KMSInvalidSignatureException
/// exception.
///
///
public bool SignatureValid
{
get { return this._signatureValid.GetValueOrDefault(); }
set { this._signatureValid = value; }
}
// Check to see if SignatureValid property is set
internal bool IsSetSignatureValid()
{
return this._signatureValid.HasValue;
}
///
/// Gets and sets the property SigningAlgorithm.
///
/// The signing algorithm that was used to verify the signature.
///
///
public SigningAlgorithmSpec SigningAlgorithm
{
get { return this._signingAlgorithm; }
set { this._signingAlgorithm = value; }
}
// Check to see if SigningAlgorithm property is set
internal bool IsSetSigningAlgorithm()
{
return this._signingAlgorithm != null;
}
}
}