ProtectedKey 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 ProtectedKey class.
Overloads
ProtectedKey(Byte[]) |
Initializes a new instance of the ProtectedKey class with no encryption. |
ProtectedKey(Byte[], EncryptingCredentials) |
Initializes a new instance of the ProtectedKey class using the specified encrypting credentials. |
ProtectedKey(Byte[])
Initializes a new instance of the ProtectedKey class with no encryption.
public:
ProtectedKey(cli::array <System::Byte> ^ secret);
public ProtectedKey (byte[] secret);
new System.IdentityModel.Protocols.WSTrust.ProtectedKey : byte[] -> System.IdentityModel.Protocols.WSTrust.ProtectedKey
Public Sub New (secret As Byte())
Parameters
Remarks
Use this constructor to send the key material in clear text. The WrappingCredentials property is set to null
in the new ProtectedKey instance.
Applies to
ProtectedKey(Byte[], EncryptingCredentials)
Initializes a new instance of the ProtectedKey class using the specified encrypting credentials.
public:
ProtectedKey(cli::array <System::Byte> ^ secret, System::IdentityModel::Tokens::EncryptingCredentials ^ wrappingCredentials);
public ProtectedKey (byte[] secret, System.IdentityModel.Tokens.EncryptingCredentials wrappingCredentials);
new System.IdentityModel.Protocols.WSTrust.ProtectedKey : byte[] * System.IdentityModel.Tokens.EncryptingCredentials -> System.IdentityModel.Protocols.WSTrust.ProtectedKey
Public Sub New (secret As Byte(), wrappingCredentials As EncryptingCredentials)
Parameters
- wrappingCredentials
- EncryptingCredentials
An EncryptingCredentials that contains the credentials used to encrypt the key material.
Remarks
Use this constructor to send the key material encrypted.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om