mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 17:10:20 -10:00
25 lines
522 B
C#
25 lines
522 B
C#
using System;
|
|
using System.IdentityModel.Tokens;
|
|
|
|
namespace System.IdentityModel.Protocols.WSTrust
|
|
{
|
|
public class ProtectedKey
|
|
{
|
|
private byte[] secret;
|
|
|
|
public EncryptingCredentials WrappingCredentials { get; private set; }
|
|
|
|
public ProtectedKey (byte[] secret) {
|
|
this.secret = secret;
|
|
}
|
|
|
|
public ProtectedKey (byte[] secret, EncryptingCredentials wrappingCredentials) {
|
|
this.secret = secret;
|
|
WrappingCredentials = wrappingCredentials;
|
|
}
|
|
|
|
public byte[] GetKeyBytes () {
|
|
return secret;
|
|
}
|
|
}
|
|
} |