Xamarin Public Jenkins (auto-signing) e79aa3c0ed Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
2016-08-03 10:59:49 +00:00

33 lines
1.3 KiB
C#

//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
namespace System.IdentityModel.Tokens
{
using System;
using RSTR = System.IdentityModel.Protocols.WSTrust.RequestSecurityTokenResponse;
/// <summary>
/// Base class for SymmetricProofDescriptor and AsymmetricProofDescriptor.
/// </summary>
public abstract class ProofDescriptor
{
/// <summary>
/// Sets the appropriate things, such as requested proof token, inside the RSTR
/// based on what is inside the proof descriptor instance.
/// </summary>
/// <param name="response">The RSTR object that this proof descriptor needs to modify.</param>
public abstract void ApplyTo(RSTR response);
/// <summary>
/// Gets the key identifier that can be used inside issued to define the key
/// either symmetric or assymetric. If the key is symmetric, it is usually the binary secret
/// or encrypted key; if it is asymmetric it is usually the key identifier from the RST/UseKey
/// i.e. the public key.
/// </summary>
public abstract SecurityKeyIdentifier KeyIdentifier { get; }
}
}