/*
* 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 Sign operation.
///
public partial class SignResponse : AmazonWebServiceResponse
{
private string _keyId;
private MemoryStream _signature;
private SigningAlgorithmSpec _signingAlgorithm;
///
/// Gets and sets the property KeyId.
///
/// The Amazon Resource Name (key
/// ARN) of the asymmetric KMS key that was used to sign the message.
///
///
[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 Signature.
///
/// The cryptographic signature that was generated for the message.
///
/// -
///
/// When used with the supported RSA signing algorithms, the encoding of this value is
/// defined by PKCS #1 in RFC 8017.
///
///
-
///
/// When used with the
ECDSA_SHA_256
, ECDSA_SHA_384
, or ECDSA_SHA_512
/// signing algorithms, this value is a DER-encoded object as defined by ANSI X9.62–2005
/// and RFC 3279 Section 2.2.3.
/// This is the most commonly used signature format and is appropriate for most uses.
///
///
///
///
/// When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded.
/// Otherwise, it is not Base64-encoded.
///
///
[AWSProperty(Min=1, Max=6144)]
public MemoryStream Signature
{
get { return this._signature; }
set { this._signature = value; }
}
// Check to see if Signature property is set
internal bool IsSetSignature()
{
return this._signature != null;
}
///
/// Gets and sets the property SigningAlgorithm.
///
/// The signing algorithm that was used to sign the message.
///
///
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;
}
}
}