BootstrapContext Constructors

Definition

Initializes a new instance of the BootstrapContext class.

Overloads

BootstrapContext(Byte[])

Initializes a new instance of the BootstrapContext class by using the specified array.

BootstrapContext(String)

Initializes a new instance of the BootstrapContext class by using the specified string.

BootstrapContext(SerializationInfo, StreamingContext)

Initializes a new instance of the BootstrapContext class from a stream.

BootstrapContext(SecurityToken, SecurityTokenHandler)

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

BootstrapContext(Byte[])

Initializes a new instance of the BootstrapContext class by using the specified array.

public:
 BootstrapContext(cli::array <System::Byte> ^ token);
public BootstrapContext (byte[] token);
new System.IdentityModel.Tokens.BootstrapContext : byte[] -> System.IdentityModel.Tokens.BootstrapContext
Public Sub New (token As Byte())

Parameters

token
Byte[]

An array that represents the token.

Exceptions

token is null.

Applies to

BootstrapContext(String)

Initializes a new instance of the BootstrapContext class by using the specified string.

public:
 BootstrapContext(System::String ^ token);
public BootstrapContext (string token);
new System.IdentityModel.Tokens.BootstrapContext : string -> System.IdentityModel.Tokens.BootstrapContext
Public Sub New (token As String)

Parameters

token
String

A string that represents the token.

Exceptions

token is null.

Applies to

BootstrapContext(SerializationInfo, StreamingContext)

Initializes a new instance of the BootstrapContext class from a stream.

protected:
 BootstrapContext(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected BootstrapContext (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.IdentityModel.Tokens.BootstrapContext : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.IdentityModel.Tokens.BootstrapContext
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The serialized data.

context
StreamingContext

The context for serialization.

Exceptions

info is null.

Applies to

BootstrapContext(SecurityToken, SecurityTokenHandler)

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

public:
 BootstrapContext(System::IdentityModel::Tokens::SecurityToken ^ token, System::IdentityModel::Tokens::SecurityTokenHandler ^ tokenHandler);
public:
 BootstrapContext(System::IdentityModel::Tokens::SecurityToken ^ token, System::IdentityModel::Tokens::SecurityTokenHandler ^ handler);
public BootstrapContext (System.IdentityModel.Tokens.SecurityToken token, System.IdentityModel.Tokens.SecurityTokenHandler tokenHandler);
public BootstrapContext (System.IdentityModel.Tokens.SecurityToken token, System.IdentityModel.Tokens.SecurityTokenHandler handler);
new System.IdentityModel.Tokens.BootstrapContext : System.IdentityModel.Tokens.SecurityToken * System.IdentityModel.Tokens.SecurityTokenHandler -> System.IdentityModel.Tokens.BootstrapContext
new System.IdentityModel.Tokens.BootstrapContext : System.IdentityModel.Tokens.SecurityToken * System.IdentityModel.Tokens.SecurityTokenHandler -> System.IdentityModel.Tokens.BootstrapContext
Public Sub New (token As SecurityToken, tokenHandler As SecurityTokenHandler)
Public Sub New (token As SecurityToken, handler As SecurityTokenHandler)

Parameters

token
SecurityToken

The security token to serialize.

tokenHandlerhandler
SecurityTokenHandler

The handler with which to serialize the token.

Exceptions

token is null.

-or-

tokenHandler is null.

Remarks

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.

Applies to