InMemorySymmetricSecurityKey Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the InMemorySymmetricSecurityKey class.
Overloads
InMemorySymmetricSecurityKey(Byte[]) |
Initializes a new instance of the InMemorySymmetricSecurityKey class using the specified symmetric key. |
InMemorySymmetricSecurityKey(Byte[], Boolean) |
Initializes a new instance of the InMemorySymmetricSecurityKey class using the specified symmetric key and a value that indicates whether the binary data must be cloned. |
InMemorySymmetricSecurityKey(Byte[])
Initializes a new instance of the InMemorySymmetricSecurityKey class using the specified symmetric key.
public:
InMemorySymmetricSecurityKey(cli::array <System::Byte> ^ symmetricKey);
public InMemorySymmetricSecurityKey (byte[] symmetricKey);
new System.IdentityModel.Tokens.InMemorySymmetricSecurityKey : byte[] -> System.IdentityModel.Tokens.InMemorySymmetricSecurityKey
Public Sub New (symmetricKey As Byte())
Parameters
Exceptions
symmetricKey
is null
.
symmetricKey
is zero length.
Applies to
InMemorySymmetricSecurityKey(Byte[], Boolean)
Initializes a new instance of the InMemorySymmetricSecurityKey class using the specified symmetric key and a value that indicates whether the binary data must be cloned.
public:
InMemorySymmetricSecurityKey(cli::array <System::Byte> ^ symmetricKey, bool cloneBuffer);
public InMemorySymmetricSecurityKey (byte[] symmetricKey, bool cloneBuffer);
new System.IdentityModel.Tokens.InMemorySymmetricSecurityKey : byte[] * bool -> System.IdentityModel.Tokens.InMemorySymmetricSecurityKey
Public Sub New (symmetricKey As Byte(), cloneBuffer As Boolean)
Parameters
- cloneBuffer
- Boolean
true
to clone the array passed into the symmetricKey
parameter; otherwise, false
.
Exceptions
symmetricKey
is null
.
symmetricKey
is zero length.