BootstrapContext Constructor (SecurityToken^, SecurityTokenHandler^)

.NET Framework (current version)
 

Initializes a new instance of the BootstrapContext class by using the specified security token and token handler.

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public:
BootstrapContext(
	SecurityToken^ token,
	SecurityTokenHandler^ tokenHandler
)

Parameters

token
Type: System.IdentityModel.Tokens::SecurityToken^

The security token to serialize.

tokenHandler
Type: System.IdentityModel.Tokens::SecurityTokenHandler^

The handler with which to serialize the token.

Exception Condition
ArgumentNullException

token is null.

-or-

tokenHandler is null.

The token handler is not used to deserialize the token because it cannot be assumed to exist at the time when the token is deserialized.

.NET Framework
Available since 4.5
Return to top
Show: