System.Net.Security
13 wrapped types. Load them with using { "System.Net.Security" }. Click a class to open it.
AuthenticatedStream class abstract · extends Stream
System.Net.Security.AuthenticatedStream · assembly System.Net.Security
Implements: IDisposable, IAsyncDisposable
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
LeaveInnerStreamOpen | bool | read | o.LeaveInnerStreamOpen |
IsAuthenticated | bool | read | o.IsAuthenticated |
IsMutuallyAuthenticated | bool | read | o.IsMutuallyAuthenticated |
IsEncrypted | bool | read | o.IsEncrypted |
IsSigned | bool | read | o.IsSigned |
IsServer | bool | read | o.IsServer |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
DisposeAsync | callMethod("DisposeAsync",[]) | ValueTask DisposeAsync() |
Members of the base class are inherited.
CipherSuitesPolicy class sealed
System.Net.Security.CipherSuitesPolicy · assembly System.Net.Security
Constructors
new CipherSuitesPolicy(IEnumerable<TlsCipherSuite> allowedCipherSuites) |
Ring: new CipherSuitesPolicy(args) uses one constructor; the others are chosen by the parameter names: new CipherSuitesPolicy().@New([ :param = value ]) or dnNew("CipherSuitesPolicy",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
AllowedCipherSuites | IEnumerable<TlsCipherSuite> | read | o.AllowedCipherSuites |
NegotiateAuthentication class sealed
System.Net.Security.NegotiateAuthentication · assembly System.Net.Security
Implements: IDisposable
Constructors
new NegotiateAuthentication(NegotiateAuthenticationClientOptions clientOptions) |
new NegotiateAuthentication(NegotiateAuthenticationServerOptions serverOptions) |
Ring: new NegotiateAuthentication(args) uses one constructor; the others are chosen by the parameter names: new NegotiateAuthentication().@New([ :param = value ]) or dnNew("NegotiateAuthentication",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
IsAuthenticated | bool | read | o.IsAuthenticated |
ProtectionLevel | ProtectionLevel | read | o.ProtectionLevel |
IsSigned | bool | read | o.IsSigned |
IsEncrypted | bool | read | o.IsEncrypted |
IsMutuallyAuthenticated | bool | read | o.IsMutuallyAuthenticated |
IsServer | bool | read | o.IsServer |
Package | string | read | o.getPackage() |
TargetName | string | read | o.TargetName |
RemoteIdentity | IIdentity | read | o.RemoteIdentity |
ImpersonationLevel | TokenImpersonationLevel | read | o.ImpersonationLevel |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
ComputeIntegrityCheck | ComputeIntegrityCheck(p1,p2) | void ComputeIntegrityCheck(ReadOnlySpan<byte> message, IBufferWriter<byte> signatureWriter) |
Dispose | callMethod("Dispose",[]) | void Dispose() |
GetOutgoingBlob | GetOutgoingBlob(p1) | byte[] GetOutgoingBlob(ReadOnlySpan<byte> incomingBlob, out NegotiateAuthenticationStatusCode statusCode)string GetOutgoingBlob(string incomingBlob, out NegotiateAuthenticationStatusCode statusCode) |
Unwrap | Unwrap(p1,p2) | NegotiateAuthenticationStatusCode Unwrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, out bool wasEncrypted) |
UnwrapInPlace | UnwrapInPlace(p1) | NegotiateAuthenticationStatusCode UnwrapInPlace(Span<byte> input, out int unwrappedOffset, out int unwrappedLength, out bool wasEncrypted) |
VerifyIntegrityCheck | VerifyIntegrityCheck(p1,p2) | bool VerifyIntegrityCheck(ReadOnlySpan<byte> message, ReadOnlySpan<byte> signature) |
Wrap | Wrap(p1,p2,p3) | NegotiateAuthenticationStatusCode Wrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, bool requestEncryption, out bool isEncrypted) |
NegotiateAuthenticationClientOptions class
System.Net.Security.NegotiateAuthenticationClientOptions · assembly System.Net.Security
Constructors
new NegotiateAuthenticationClientOptions() |
Ring: new NegotiateAuthenticationClientOptions(args) uses one constructor; the others are chosen by the parameter names: new NegotiateAuthenticationClientOptions().@New([ :param = value ]) or dnNew("NegotiateAuthenticationClientOptions",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Package | string | read, write | o.getPackage() o.setPackage(v) |
Credential | NetworkCredential | read, write | o.Credential o.Credential = v |
TargetName | string | read, write | o.TargetName o.TargetName = v |
Binding | ChannelBinding | read, write | o.Binding o.Binding = v |
RequiredProtectionLevel | ProtectionLevel | read, write | o.RequiredProtectionLevel o.RequiredProtectionLevel = v |
RequireMutualAuthentication | bool | read, write | o.RequireMutualAuthentication o.RequireMutualAuthentication = v |
AllowedImpersonationLevel | TokenImpersonationLevel | read, write | o.AllowedImpersonationLevel o.AllowedImpersonationLevel = v |
NegotiateAuthenticationServerOptions class
System.Net.Security.NegotiateAuthenticationServerOptions · assembly System.Net.Security
Constructors
new NegotiateAuthenticationServerOptions() |
Ring: new NegotiateAuthenticationServerOptions(args) uses one constructor; the others are chosen by the parameter names: new NegotiateAuthenticationServerOptions().@New([ :param = value ]) or dnNew("NegotiateAuthenticationServerOptions",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Package | string | read, write | o.getPackage() o.setPackage(v) |
Credential | NetworkCredential | read, write | o.Credential o.Credential = v |
Binding | ChannelBinding | read, write | o.Binding o.Binding = v |
RequiredProtectionLevel | ProtectionLevel | read, write | o.RequiredProtectionLevel o.RequiredProtectionLevel = v |
Policy | ExtendedProtectionPolicy | read, write | o.Policy o.Policy = v |
RequiredImpersonationLevel | TokenImpersonationLevel | read, write | o.RequiredImpersonationLevel o.RequiredImpersonationLevel = v |
NegotiateStream class · extends AuthenticatedStream
System.Net.Security.NegotiateStream · assembly System.Net.Security
Implements: IDisposable, IAsyncDisposable
Constructors
new NegotiateStream(Stream innerStream) |
new NegotiateStream(Stream innerStream, bool leaveInnerStreamOpen) |
Ring: new NegotiateStream(args) uses one constructor; the others are chosen by the parameter names: new NegotiateStream().@New([ :param = value ]) or dnNew("NegotiateStream",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
IsAuthenticated | bool | read | o.getIsAuthenticated() |
IsMutuallyAuthenticated | bool | read | o.getIsMutuallyAuthenticated() |
IsEncrypted | bool | read | o.getIsEncrypted() |
IsSigned | bool | read | o.getIsSigned() |
IsServer | bool | read | o.getIsServer() |
ImpersonationLevel | TokenImpersonationLevel | read | o.ImpersonationLevel |
RemoteIdentity | IIdentity | read | o.RemoteIdentity |
CanSeek | bool | read | o.getCanSeek() |
CanRead | bool | read | o.getCanRead() |
CanTimeout | bool | read | o.getCanTimeout() |
CanWrite | bool | read | o.getCanWrite() |
ReadTimeout | int | read, write | o.getReadTimeout() o.setReadTimeout(v) |
WriteTimeout | int | read, write | o.getWriteTimeout() o.setWriteTimeout(v) |
Length | long | read | o.getLength() |
Position | long | read, write | o.getPosition() o.setPosition(v) |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
AuthenticateAsClient | AuthenticateAsClient(NULL)AuthenticateAsClient([ :credential = …, :targetName = … ])AuthenticateAsClient([ :credential = …, :binding = …, :targetName = … ])AuthenticateAsClient([ :credential = …, :targetName = …, :requiredProtectionLevel = …, :allowedImpersonationLevel = … ])AuthenticateAsClient([ :credential = …, :binding = …, :targetName = …, :requiredProtectionLevel = …, :allowedImpersonationLevel = … ]) | void AuthenticateAsClient()void AuthenticateAsClient(NetworkCredential credential, string targetName)void AuthenticateAsClient(NetworkCredential credential, ChannelBinding binding, string targetName)void AuthenticateAsClient(NetworkCredential credential, string targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel)void AuthenticateAsClient(NetworkCredential credential, ChannelBinding binding, string targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel) |
AuthenticateAsClientAsync | AuthenticateAsClientAsync(NULL)AuthenticateAsClientAsync([ :credential = …, :targetName = … ])AuthenticateAsClientAsync([ :credential = …, :binding = …, :targetName = … ])AuthenticateAsClientAsync([ :credential = …, :targetName = …, :requiredProtectionLevel = …, :allowedImpersonationLevel = … ])AuthenticateAsClientAsync([ :credential = …, :binding = …, :targetName = …, :requiredProtectionLevel = …, :allowedImpersonationLevel = … ]) | Task AuthenticateAsClientAsync()Task AuthenticateAsClientAsync(NetworkCredential credential, string targetName)Task AuthenticateAsClientAsync(NetworkCredential credential, string targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel)Task AuthenticateAsClientAsync(NetworkCredential credential, ChannelBinding binding, string targetName)Task AuthenticateAsClientAsync(NetworkCredential credential, ChannelBinding binding, string targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel) |
AuthenticateAsServer | callMethod("AuthenticateAsServer",[])callMethod("AuthenticateAsServer",[p1])callMethod("AuthenticateAsServer",[p1,p2,p3])callMethod("AuthenticateAsServer",[p1,p2,p3,p4]) | void AuthenticateAsServer()void AuthenticateAsServer(ExtendedProtectionPolicy policy)void AuthenticateAsServer(NetworkCredential credential, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel requiredImpersonationLevel)void AuthenticateAsServer(NetworkCredential credential, ExtendedProtectionPolicy policy, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel requiredImpersonationLevel) |
AuthenticateAsServerAsync | AuthenticateAsServerAsync(NULL)AuthenticateAsServerAsync(value)AuthenticateAsServerAsync([ :policy = … ])AuthenticateAsServerAsync([ :credential = …, :requiredProtectionLevel = …, :requiredImpersonationLevel = … ])AuthenticateAsServerAsync([ :credential = …, :policy = …, :requiredProtectionLevel = …, :requiredImpersonationLevel = … ]) | Task AuthenticateAsServerAsync()Task AuthenticateAsServerAsync(ExtendedProtectionPolicy policy)Task AuthenticateAsServerAsync(NetworkCredential credential, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel requiredImpersonationLevel)Task AuthenticateAsServerAsync(NetworkCredential credential, ExtendedProtectionPolicy policy, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel requiredImpersonationLevel) |
BeginAuthenticateAsClient | BeginAuthenticateAsClient([ :asyncCallback = …, :asyncState = … ])BeginAuthenticateAsClient([ :credential = …, :targetName = …, :asyncCallback = …, :asyncState = … ])BeginAuthenticateAsClient([ :credential = …, :binding = …, :targetName = …, :asyncCallback = …, :asyncState = … ])BeginAuthenticateAsClient([ :credential = …, :targetName = …, :requiredProtectionLevel = …, :allowedImpersonationLevel = …, :asyncCallback = …, :asyncState = … ]) | IAsyncResult BeginAuthenticateAsClient(AsyncCallback asyncCallback, object asyncState)IAsyncResult BeginAuthenticateAsClient(NetworkCredential credential, string targetName, AsyncCallback asyncCallback, object asyncState)IAsyncResult BeginAuthenticateAsClient(NetworkCredential credential, ChannelBinding binding, string targetName, AsyncCallback asyncCallback, object asyncState)IAsyncResult BeginAuthenticateAsClient(NetworkCredential credential, string targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel, AsyncCallback asyncCallback, object asyncState)IAsyncResult BeginAuthenticateAsClient(NetworkCredential credential, ChannelBinding binding, string targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel, AsyncCallback asyncCallback, object asyncState) |
BeginAuthenticateAsServer | BeginAuthenticateAsServer([ :asyncCallback = …, :asyncState = … ])BeginAuthenticateAsServer([ :policy = …, :asyncCallback = …, :asyncState = … ])BeginAuthenticateAsServer([ :credential = …, :requiredProtectionLevel = …, :requiredImpersonationLevel = …, :asyncCallback = …, :asyncState = … ])BeginAuthenticateAsServer([ :credential = …, :policy = …, :requiredProtectionLevel = …, :requiredImpersonationLevel = …, :asyncCallback = …, :asyncState = … ]) | IAsyncResult BeginAuthenticateAsServer(AsyncCallback asyncCallback, object asyncState)IAsyncResult BeginAuthenticateAsServer(ExtendedProtectionPolicy policy, AsyncCallback asyncCallback, object asyncState)IAsyncResult BeginAuthenticateAsServer(NetworkCredential credential, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel requiredImpersonationLevel, AsyncCallback asyncCallback, object asyncState)IAsyncResult BeginAuthenticateAsServer(NetworkCredential credential, ExtendedProtectionPolicy policy, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel requiredImpersonationLevel, AsyncCallback asyncCallback, object asyncState) |
BeginRead | callMethod("BeginRead",[p1,p2,p3,p4,p5]) | IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState) |
BeginWrite | callMethod("BeginWrite",[p1,p2,p3,p4,p5]) | IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState) |
DisposeAsync | callMethod("DisposeAsync",[]) | ValueTask DisposeAsync() |
EndAuthenticateAsClient | EndAuthenticateAsClient(p1) | void EndAuthenticateAsClient(IAsyncResult asyncResult) |
EndAuthenticateAsServer | EndAuthenticateAsServer(p1) | void EndAuthenticateAsServer(IAsyncResult asyncResult) |
EndRead | EndRead(p1) | int EndRead(IAsyncResult asyncResult) |
EndWrite | EndWrite(p1) | void EndWrite(IAsyncResult asyncResult) |
Flush | callMethod("Flush",[]) | void Flush() |
FlushAsync | FlushAsync(value)FlushAsync([ :cancellationToken = … ]) | Task FlushAsync(CancellationToken cancellationToken) |
Read | Read(p1,p2,p3) | int Read(byte[] buffer, int offset, int count) |
ReadAsync | ReadAsync([ :buffer = …, :cancellationToken = … ])ReadAsync([ :buffer = …, :offset = …, :count = …, :cancellationToken = … ]) | Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)ValueTask<int> ReadAsync(Memory<byte> buffer, CancellationToken cancellationToken = …) |
Seek | Seek(p1,p2) | long Seek(long offset, SeekOrigin origin) |
SetLength | callMethod("SetLength",[p1]) | void SetLength(long value) |
Write | Write(p1,p2,p3) | void Write(byte[] buffer, int offset, int count) |
WriteAsync | WriteAsync([ :buffer = …, :cancellationToken = … ])WriteAsync([ :buffer = …, :offset = …, :count = …, :cancellationToken = … ]) | Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken = …) |
Members of the base class are inherited.
SslApplicationProtocol struct
System.Net.Security.SslApplicationProtocol · assembly System.Net.Security
Constructors
new SslApplicationProtocol(byte[] protocol) |
new SslApplicationProtocol(string protocol) |
Ring: new SslApplicationProtocol(args) uses one constructor; the others are chosen by the parameter names: new SslApplicationProtocol().@New([ :param = value ]) or dnNew("SslApplicationProtocol",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Protocol | ReadOnlyMemory<byte> | read | o.Protocol |
Http3 | SslApplicationProtocol | read · static | o.Http3 |
Http2 | SslApplicationProtocol | read · static | o.Http2 |
Http11 | SslApplicationProtocol | read · static | o.Http11 |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Equals | Equals(p1) | bool Equals(SslApplicationProtocol other)bool Equals(object obj) |
GetHashCode | callMethod("GetHashCode",[]) | int GetHashCode() |
ToString | callMethod("ToString",[]) | string ToString() |
SslCertificateTrust class sealed
System.Net.Security.SslCertificateTrust · assembly System.Net.Security
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
CreateForX509Collection | CreateForX509Collection([ :trustList = …, :sendTrustInHandshake = … ]) | static SslCertificateTrust CreateForX509Collection(X509Certificate2Collection trustList, bool sendTrustInHandshake = …) |
CreateForX509Store | CreateForX509Store([ :store = …, :sendTrustInHandshake = … ]) | static SslCertificateTrust CreateForX509Store(X509Store store, bool sendTrustInHandshake = …) |
SslClientAuthenticationOptions class
System.Net.Security.SslClientAuthenticationOptions · assembly System.Net.Security
Constructors
new SslClientAuthenticationOptions() |
Ring: new SslClientAuthenticationOptions(args) uses one constructor; the others are chosen by the parameter names: new SslClientAuthenticationOptions().@New([ :param = value ]) or dnNew("SslClientAuthenticationOptions",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
AllowRenegotiation | bool | read, write | o.AllowRenegotiation o.AllowRenegotiation = v |
AllowTlsResume | bool | read, write | o.AllowTlsResume o.AllowTlsResume = v |
LocalCertificateSelectionCallback | LocalCertificateSelectionCallback | read, write | o.LocalCertificateSelectionCallback o.LocalCertificateSelectionCallback = v |
RemoteCertificateValidationCallback | RemoteCertificateValidationCallback | read, write | o.RemoteCertificateValidationCallback o.RemoteCertificateValidationCallback = v |
ApplicationProtocols | List<SslApplicationProtocol> | read, write | o.ApplicationProtocols o.ApplicationProtocols = v |
TargetHost | string | read, write | o.TargetHost o.TargetHost = v |
ClientCertificates | X509CertificateCollection | read, write | o.ClientCertificates o.ClientCertificates = v |
ClientCertificateContext | SslStreamCertificateContext | read, write | o.ClientCertificateContext o.ClientCertificateContext = v |
CertificateRevocationCheckMode | X509RevocationMode | read, write | o.CertificateRevocationCheckMode o.CertificateRevocationCheckMode = v |
EncryptionPolicy | EncryptionPolicy | read, write | o.EncryptionPolicy o.EncryptionPolicy = v |
EnabledSslProtocols | SslProtocols | read, write | o.EnabledSslProtocols o.EnabledSslProtocols = v |
CipherSuitesPolicy | CipherSuitesPolicy | read, write | o.CipherSuitesPolicy o.CipherSuitesPolicy = v |
CertificateChainPolicy | X509ChainPolicy | read, write | o.CertificateChainPolicy o.CertificateChainPolicy = v |
SslClientHelloInfo struct
System.Net.Security.SslClientHelloInfo · assembly System.Net.Security
Constructors
new SslClientHelloInfo(string serverName, SslProtocols sslProtocols) |
Ring: new SslClientHelloInfo(args) uses one constructor; the others are chosen by the parameter names: new SslClientHelloInfo().@New([ :param = value ]) or dnNew("SslClientHelloInfo",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
ServerName | string | read | o.ServerName |
SslProtocols | SslProtocols | read | o.SslProtocols |
SslServerAuthenticationOptions class
System.Net.Security.SslServerAuthenticationOptions · assembly System.Net.Security
Constructors
new SslServerAuthenticationOptions() |
Ring: new SslServerAuthenticationOptions(args) uses one constructor; the others are chosen by the parameter names: new SslServerAuthenticationOptions().@New([ :param = value ]) or dnNew("SslServerAuthenticationOptions",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
AllowRenegotiation | bool | read, write | o.AllowRenegotiation o.AllowRenegotiation = v |
AllowTlsResume | bool | read, write | o.AllowTlsResume o.AllowTlsResume = v |
ClientCertificateRequired | bool | read, write | o.ClientCertificateRequired o.ClientCertificateRequired = v |
ApplicationProtocols | List<SslApplicationProtocol> | read, write | o.ApplicationProtocols o.ApplicationProtocols = v |
RemoteCertificateValidationCallback | RemoteCertificateValidationCallback | read, write | o.RemoteCertificateValidationCallback o.RemoteCertificateValidationCallback = v |
ServerCertificateSelectionCallback | ServerCertificateSelectionCallback | read, write | o.ServerCertificateSelectionCallback o.ServerCertificateSelectionCallback = v |
ServerCertificate | X509Certificate | read, write | o.ServerCertificate o.ServerCertificate = v |
ServerCertificateContext | SslStreamCertificateContext | read, write | o.ServerCertificateContext o.ServerCertificateContext = v |
EnabledSslProtocols | SslProtocols | read, write | o.EnabledSslProtocols o.EnabledSslProtocols = v |
CertificateRevocationCheckMode | X509RevocationMode | read, write | o.CertificateRevocationCheckMode o.CertificateRevocationCheckMode = v |
EncryptionPolicy | EncryptionPolicy | read, write | o.EncryptionPolicy o.EncryptionPolicy = v |
CipherSuitesPolicy | CipherSuitesPolicy | read, write | o.CipherSuitesPolicy o.CipherSuitesPolicy = v |
CertificateChainPolicy | X509ChainPolicy | read, write | o.CertificateChainPolicy o.CertificateChainPolicy = v |
SslStream class · extends AuthenticatedStream
System.Net.Security.SslStream · assembly System.Net.Security
Implements: IDisposable, IAsyncDisposable
Constructors
new SslStream(Stream innerStream) |
new SslStream(Stream innerStream, bool leaveInnerStreamOpen) |
new SslStream(Stream innerStream, bool leaveInnerStreamOpen, RemoteCertificateValidationCallback userCertificateValidationCallback) |
new SslStream(Stream innerStream, bool leaveInnerStreamOpen, RemoteCertificateValidationCallback userCertificateValidationCallback, LocalCertificateSelectionCallback userCertificateSelectionCallback) |
new SslStream(Stream innerStream, bool leaveInnerStreamOpen, RemoteCertificateValidationCallback userCertificateValidationCallback, LocalCertificateSelectionCallback userCertificateSelectionCallback, EncryptionPolicy encryptionPolicy) |
Ring: new SslStream(args) uses one constructor; the others are chosen by the parameter names: new SslStream().@New([ :param = value ]) or dnNew("SslStream",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
TransportContext | TransportContext | read | o.TransportContext |
IsAuthenticated | bool | read | o.getIsAuthenticated() |
IsMutuallyAuthenticated | bool | read | o.getIsMutuallyAuthenticated() |
IsEncrypted | bool | read | o.getIsEncrypted() |
IsSigned | bool | read | o.getIsSigned() |
IsServer | bool | read | o.getIsServer() |
SslProtocol | SslProtocols | read | o.SslProtocol |
CheckCertRevocationStatus | bool | read | o.CheckCertRevocationStatus |
LocalCertificate | X509Certificate | read | o.LocalCertificate |
RemoteCertificate | X509Certificate | read | o.RemoteCertificate |
NegotiatedApplicationProtocol | SslApplicationProtocol | read | o.NegotiatedApplicationProtocol |
NegotiatedCipherSuite | TlsCipherSuite | read | o.NegotiatedCipherSuite |
CipherAlgorithm | CipherAlgorithmType | read | o.CipherAlgorithm |
CipherStrength | int | read | o.CipherStrength |
HashAlgorithm | HashAlgorithmType | read | o.HashAlgorithm |
HashStrength | int | read | o.HashStrength |
KeyExchangeAlgorithm | ExchangeAlgorithmType | read | o.KeyExchangeAlgorithm |
KeyExchangeStrength | int | read | o.KeyExchangeStrength |
TargetHostName | string | read | o.TargetHostName |
CanSeek | bool | read | o.getCanSeek() |
CanRead | bool | read | o.getCanRead() |
CanTimeout | bool | read | o.getCanTimeout() |
CanWrite | bool | read | o.getCanWrite() |
ReadTimeout | int | read, write | o.getReadTimeout() o.setReadTimeout(v) |
WriteTimeout | int | read, write | o.getWriteTimeout() o.setWriteTimeout(v) |
Length | long | read | o.getLength() |
Position | long | read, write | o.getPosition() o.setPosition(v) |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
AuthenticateAsClient | callMethod("AuthenticateAsClient",[p1])callMethod("AuthenticateAsClient",[p1,p2,p3])callMethod("AuthenticateAsClient",[p1,p2,p3,p4]) | void AuthenticateAsClient(string targetHost)void AuthenticateAsClient(string targetHost, X509CertificateCollection clientCertificates, bool checkCertificateRevocation)void AuthenticateAsClient(string targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, bool checkCertificateRevocation)void AuthenticateAsClient(SslClientAuthenticationOptions sslClientAuthenticationOptions) |
AuthenticateAsClientAsync | AuthenticateAsClientAsync(value)AuthenticateAsClientAsync([ :targetHost = … ])AuthenticateAsClientAsync([ :sslClientAuthenticationOptions = …, :cancellationToken = … ])AuthenticateAsClientAsync([ :targetHost = …, :clientCertificates = …, :checkCertificateRevocation = … ])AuthenticateAsClientAsync([ :targetHost = …, :clientCertificates = …, :enabledSslProtocols = …, :checkCertificateRevocation = … ]) | Task AuthenticateAsClientAsync(string targetHost)Task AuthenticateAsClientAsync(string targetHost, X509CertificateCollection clientCertificates, bool checkCertificateRevocation)Task AuthenticateAsClientAsync(string targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, bool checkCertificateRevocation)Task AuthenticateAsClientAsync(SslClientAuthenticationOptions sslClientAuthenticationOptions, CancellationToken cancellationToken = …) |
AuthenticateAsServer | callMethod("AuthenticateAsServer",[p1])callMethod("AuthenticateAsServer",[p1,p2,p3])callMethod("AuthenticateAsServer",[p1,p2,p3,p4]) | void AuthenticateAsServer(X509Certificate serverCertificate)void AuthenticateAsServer(X509Certificate serverCertificate, bool clientCertificateRequired, bool checkCertificateRevocation)void AuthenticateAsServer(X509Certificate serverCertificate, bool clientCertificateRequired, SslProtocols enabledSslProtocols, bool checkCertificateRevocation)void AuthenticateAsServer(SslServerAuthenticationOptions sslServerAuthenticationOptions) |
AuthenticateAsServerAsync | AuthenticateAsServerAsync(value)AuthenticateAsServerAsync([ :serverCertificate = … ])AuthenticateAsServerAsync([ :sslServerAuthenticationOptions = …, :cancellationToken = … ])AuthenticateAsServerAsync([ :serverCertificate = …, :clientCertificateRequired = …, :checkCertificateRevocation = … ])AuthenticateAsServerAsync([ :optionsCallback = …, :state = …, :cancellationToken = … ]) | Task AuthenticateAsServerAsync(X509Certificate serverCertificate)Task AuthenticateAsServerAsync(X509Certificate serverCertificate, bool clientCertificateRequired, bool checkCertificateRevocation)Task AuthenticateAsServerAsync(X509Certificate serverCertificate, bool clientCertificateRequired, SslProtocols enabledSslProtocols, bool checkCertificateRevocation)Task AuthenticateAsServerAsync(SslServerAuthenticationOptions sslServerAuthenticationOptions, CancellationToken cancellationToken = …)Task AuthenticateAsServerAsync(ServerOptionsSelectionCallback optionsCallback, object state, CancellationToken cancellationToken = …) |
BeginAuthenticateAsClient | BeginAuthenticateAsClient([ :targetHost = …, :asyncCallback = …, :asyncState = … ])BeginAuthenticateAsClient([ :targetHost = …, :clientCertificates = …, :checkCertificateRevocation = …, :asyncCallback = …, :asyncState = … ])BeginAuthenticateAsClient([ :targetHost = …, :clientCertificates = …, :enabledSslProtocols = …, :checkCertificateRevocation = …, :asyncCallback = …, :asyncState = … ]) | IAsyncResult BeginAuthenticateAsClient(string targetHost, AsyncCallback asyncCallback, object asyncState)IAsyncResult BeginAuthenticateAsClient(string targetHost, X509CertificateCollection clientCertificates, bool checkCertificateRevocation, AsyncCallback asyncCallback, object asyncState)IAsyncResult BeginAuthenticateAsClient(string targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, bool checkCertificateRevocation, AsyncCallback asyncCallback, object asyncState) |
BeginAuthenticateAsServer | BeginAuthenticateAsServer([ :serverCertificate = …, :asyncCallback = …, :asyncState = … ])BeginAuthenticateAsServer([ :serverCertificate = …, :clientCertificateRequired = …, :checkCertificateRevocation = …, :asyncCallback = …, :asyncState = … ])BeginAuthenticateAsServer([ :serverCertificate = …, :clientCertificateRequired = …, :enabledSslProtocols = …, :checkCertificateRevocation = …, :asyncCallback = …, :asyncState = … ]) | IAsyncResult BeginAuthenticateAsServer(X509Certificate serverCertificate, AsyncCallback asyncCallback, object asyncState)IAsyncResult BeginAuthenticateAsServer(X509Certificate serverCertificate, bool clientCertificateRequired, bool checkCertificateRevocation, AsyncCallback asyncCallback, object asyncState)IAsyncResult BeginAuthenticateAsServer(X509Certificate serverCertificate, bool clientCertificateRequired, SslProtocols enabledSslProtocols, bool checkCertificateRevocation, AsyncCallback asyncCallback, object asyncState) |
BeginRead | callMethod("BeginRead",[p1,p2,p3,p4,p5]) | IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState) |
BeginWrite | callMethod("BeginWrite",[p1,p2,p3,p4,p5]) | IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState) |
DisposeAsync | callMethod("DisposeAsync",[]) | ValueTask DisposeAsync() |
EndAuthenticateAsClient | EndAuthenticateAsClient(p1) | void EndAuthenticateAsClient(IAsyncResult asyncResult) |
EndAuthenticateAsServer | EndAuthenticateAsServer(p1) | void EndAuthenticateAsServer(IAsyncResult asyncResult) |
EndRead | EndRead(p1) | int EndRead(IAsyncResult asyncResult) |
EndWrite | EndWrite(p1) | void EndWrite(IAsyncResult asyncResult) |
Flush | callMethod("Flush",[]) | void Flush() |
FlushAsync | FlushAsync(value)FlushAsync([ :cancellationToken = … ]) | Task FlushAsync(CancellationToken cancellationToken) |
NegotiateClientCertificateAsync | NegotiateClientCertificateAsync(value)NegotiateClientCertificateAsync([ :cancellationToken = … ]) | Task NegotiateClientCertificateAsync(CancellationToken cancellationToken = …) |
Read | Read(p1,p2,p3) | int Read(Span<byte> buffer)int Read(byte[] buffer, int offset, int count) |
ReadAsync | ReadAsync([ :buffer = …, :cancellationToken = … ])ReadAsync([ :buffer = …, :offset = …, :count = …, :cancellationToken = … ]) | Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)ValueTask<int> ReadAsync(Memory<byte> buffer, CancellationToken cancellationToken = …) |
ReadByte | callMethod("ReadByte",[]) | int ReadByte() |
Seek | Seek(p1,p2) | long Seek(long offset, SeekOrigin origin) |
SetLength | callMethod("SetLength",[p1]) | void SetLength(long value) |
ShutdownAsync | callMethod("ShutdownAsync",[]) | Task ShutdownAsync() |
Write | Write(p1,p2,p3) | void Write(ReadOnlySpan<byte> buffer)void Write(byte[] buffer)void Write(byte[] buffer, int offset, int count) |
WriteAsync | WriteAsync([ :buffer = …, :cancellationToken = … ])WriteAsync([ :buffer = …, :offset = …, :count = …, :cancellationToken = … ]) | Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken = …) |
WriteByte | callMethod("WriteByte",[p1]) | void WriteByte(byte value) |
Members of the base class are inherited.
SslStreamCertificateContext class
System.Net.Security.SslStreamCertificateContext · assembly System.Net.Security
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
TargetCertificate | X509Certificate2 | read | o.TargetCertificate |
IntermediateCertificates | ReadOnlyCollection<X509Certificate2> | read | o.IntermediateCertificates |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Create | Create([ :target = …, :additionalCertificates = …, :offline = … ])Create([ :target = …, :additionalCertificates = …, :offline = …, :trust = … ]) | static SslStreamCertificateContext Create(X509Certificate2 target, X509Certificate2Collection additionalCertificates, bool offline)static SslStreamCertificateContext Create(X509Certificate2 target, X509Certificate2Collection additionalCertificates, bool offline = …, SslCertificateTrust trust = …) |