Aracılığıyla paylaş


GenericXmlSecurityToken Oluşturucu

Tanım

GenericXmlSecurityToken sınıfının yeni bir örneğini başlatır.

public:
 GenericXmlSecurityToken(System::Xml::XmlElement ^ tokenXml, System::IdentityModel::Tokens::SecurityToken ^ proofToken, DateTime effectiveTime, DateTime expirationTime, System::IdentityModel::Tokens::SecurityKeyIdentifierClause ^ internalTokenReference, System::IdentityModel::Tokens::SecurityKeyIdentifierClause ^ externalTokenReference, System::Collections::ObjectModel::ReadOnlyCollection<System::IdentityModel::Policy::IAuthorizationPolicy ^> ^ authorizationPolicies);
public GenericXmlSecurityToken(System.Xml.XmlElement tokenXml, System.IdentityModel.Tokens.SecurityToken proofToken, DateTime effectiveTime, DateTime expirationTime, System.IdentityModel.Tokens.SecurityKeyIdentifierClause internalTokenReference, System.IdentityModel.Tokens.SecurityKeyIdentifierClause externalTokenReference, System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy> authorizationPolicies);
new System.IdentityModel.Tokens.GenericXmlSecurityToken : System.Xml.XmlElement * System.IdentityModel.Tokens.SecurityToken * DateTime * DateTime * System.IdentityModel.Tokens.SecurityKeyIdentifierClause * System.IdentityModel.Tokens.SecurityKeyIdentifierClause * System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy> -> System.IdentityModel.Tokens.GenericXmlSecurityToken
Public Sub New (tokenXml As XmlElement, proofToken As SecurityToken, effectiveTime As DateTime, expirationTime As DateTime, internalTokenReference As SecurityKeyIdentifierClause, externalTokenReference As SecurityKeyIdentifierClause, authorizationPolicies As ReadOnlyCollection(Of IAuthorizationPolicy))

Parametreler

tokenXml
XmlElement

XmlElement Güvenlik belirteci ile ilişkili XML'i temsil eden. TokenXml özelliğini ayarlar.

proofToken
SecurityToken

SecurityToken Güvenlik belirtecinin kanıt belirtecini temsil eden bir. ProofToken özelliğini ayarlar.

effectiveTime
DateTime

DateTime Bu güvenlik belirtecinin geçerli olduğu ilk anlık zamanı temsil eden bir. ValidFrom özelliğini ayarlar.

expirationTime
DateTime

DateTime Bu güvenlik belirtecinin geçerli olduğu son anlık zamanı temsil eden bir. ValidFrom özelliğini ayarlar.

internalTokenReference
SecurityKeyIdentifierClause

SecurityKeyIdentifierClause Bu güvenlik belirtecine başvurulan SOAP iletisine eklendiğinde başvuru gösteren. InternalTokenReference özelliğini ayarlar.

externalTokenReference
SecurityKeyIdentifierClause

SecurityKeyIdentifierClause Bu güvenlik belirtecinin başvurulan SOAP iletisinde yer almadığında bu güvenlik belirtecine başvuru gösteren bir. ValidFrom özelliğini ayarlar.

authorizationPolicies
ReadOnlyCollection<IAuthorizationPolicy>

ReadOnlyCollection<T> Bu güvenlik belirteci için ayarlanan yetkilendirme ilkelerini içeren bir türIAuthorizationPolicy.

Özel durumlar

tokenXml, null'e eşittir.

-veya-

proofToken, null'e eşittir.

Açıklamalar

internalTokenReference parametresi olduğunda, nullbu güvenlik belirteci için bir LocalIdKeyIdentifierClause anahtar tanımlayıcı yan tümcesi oluşturulur ve özelliğine InternalTokenReference ayarlanır.

GenericXmlSecurityToken bir federasyon senaryosunda elde edildiğinde, kanıt belirteci istemci için şifrelenmiş anahtarı içerir.

Şunlara uygulanır