Redigeeri

Jagamisviis:


UseKey Constructors

Definition

Initializes a new instance of the UseKey class.

Overloads

UseKey()

Initializes a new instance of the UseKey class.

UseKey(SecurityKeyIdentifier)

Initializes a new instance of the UseKey class using the specified security key identifier.

UseKey(SecurityToken)

Initializes a new instance of the UseKey class using the specified security token.

UseKey(SecurityKeyIdentifier, SecurityToken)

Initializes a new instance of the UseKey class using the specified security key identifier and security token.

UseKey()

Initializes a new instance of the UseKey class.

public:
 UseKey();
public UseKey ();
Public Sub New ()

Remarks

The constructor for extensibility.

Applies to

UseKey(SecurityKeyIdentifier)

Initializes a new instance of the UseKey class using the specified security key identifier.

public:
 UseKey(System::IdentityModel::Tokens::SecurityKeyIdentifier ^ ski);
public UseKey (System.IdentityModel.Tokens.SecurityKeyIdentifier ski);
new System.IdentityModel.Protocols.WSTrust.UseKey : System.IdentityModel.Tokens.SecurityKeyIdentifier -> System.IdentityModel.Protocols.WSTrust.UseKey
Public Sub New (ski As SecurityKeyIdentifier)

Parameters

ski
SecurityKeyIdentifier

A SecurityKeyIdentifier that represents the existing key that should be used.

Remarks

Use this constructor if the requestor knows how to convert the token to a security key identifier or if the token is already a security key identifier.

The Token property is set to null in the new UseKey instance.

Applies to

UseKey(SecurityToken)

Initializes a new instance of the UseKey class using the specified security token.

public:
 UseKey(System::IdentityModel::Tokens::SecurityToken ^ token);
public UseKey (System.IdentityModel.Tokens.SecurityToken token);
new System.IdentityModel.Protocols.WSTrust.UseKey : System.IdentityModel.Tokens.SecurityToken -> System.IdentityModel.Protocols.WSTrust.UseKey
Public Sub New (token As SecurityToken)

Parameters

token
SecurityToken

A SecurityToken that represents the existing key that should be used.

Remarks

The SecurityKeyIdentifier property is set to null in the new UseKey instance.

Applies to

UseKey(SecurityKeyIdentifier, SecurityToken)

Initializes a new instance of the UseKey class using the specified security key identifier and security token.

public:
 UseKey(System::IdentityModel::Tokens::SecurityKeyIdentifier ^ ski, System::IdentityModel::Tokens::SecurityToken ^ token);
public UseKey (System.IdentityModel.Tokens.SecurityKeyIdentifier ski, System.IdentityModel.Tokens.SecurityToken token);
new System.IdentityModel.Protocols.WSTrust.UseKey : System.IdentityModel.Tokens.SecurityKeyIdentifier * System.IdentityModel.Tokens.SecurityToken -> System.IdentityModel.Protocols.WSTrust.UseKey
Public Sub New (ski As SecurityKeyIdentifier, token As SecurityToken)

Parameters

ski
SecurityKeyIdentifier

A SecurityKeyIdentifier that represents the existing key that should be used.

token
SecurityToken

A SecurityToken that represents the existing key that should be used.

Remarks

Use this constructor to pass more information to the security token service (STS) from the serializer.

Applies to