Package system.net.security
Class SslStream
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.io.Stream
-
- system.net.security.AuthenticatedStream
-
- system.net.security.SslStream
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
public class SslStream extends AuthenticatedStream
The base .NET class managing System.Net.Security.SslStream, System.Net.Security, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Net.Security.SslStream
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: System.Net.Security, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.Net.Securitystatic java.lang.String
className
Qualified class name: System.Net.Security.SslStreamstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description SslStream()
SslStream(java.lang.Object instance)
Internal constructor.SslStream(Stream innerStream)
SslStream(Stream innerStream, boolean leaveInnerStreamOpen)
SslStream(Stream innerStream, boolean leaveInnerStreamOpen, RemoteCertificateValidationCallback userCertificateValidationCallback)
SslStream(Stream innerStream, boolean leaveInnerStreamOpen, RemoteCertificateValidationCallback userCertificateValidationCallback, LocalCertificateSelectionCallback userCertificateSelectionCallback)
SslStream(Stream innerStream, boolean leaveInnerStreamOpen, RemoteCertificateValidationCallback userCertificateValidationCallback, LocalCertificateSelectionCallback userCertificateSelectionCallback, EncryptionPolicy encryptionPolicy)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
AuthenticateAsClient(java.lang.String targetHost)
void
AuthenticateAsClient(java.lang.String targetHost, X509CertificateCollection clientCertificates, boolean checkCertificateRevocation)
void
AuthenticateAsClient(java.lang.String targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, boolean checkCertificateRevocation)
void
AuthenticateAsClient(SslClientAuthenticationOptions sslClientAuthenticationOptions)
Task
AuthenticateAsClientAsync(java.lang.String targetHost)
Task
AuthenticateAsClientAsync(java.lang.String targetHost, X509CertificateCollection clientCertificates, boolean checkCertificateRevocation)
Task
AuthenticateAsClientAsync(java.lang.String targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, boolean checkCertificateRevocation)
Task
AuthenticateAsClientAsync(SslClientAuthenticationOptions sslClientAuthenticationOptions, CancellationToken cancellationToken)
void
AuthenticateAsServer(SslServerAuthenticationOptions sslServerAuthenticationOptions)
void
AuthenticateAsServer(X509Certificate serverCertificate)
void
AuthenticateAsServer(X509Certificate serverCertificate, boolean clientCertificateRequired, boolean checkCertificateRevocation)
void
AuthenticateAsServer(X509Certificate serverCertificate, boolean clientCertificateRequired, SslProtocols enabledSslProtocols, boolean checkCertificateRevocation)
Task
AuthenticateAsServerAsync(SslServerAuthenticationOptions sslServerAuthenticationOptions, CancellationToken cancellationToken)
Task
AuthenticateAsServerAsync(X509Certificate serverCertificate)
Task
AuthenticateAsServerAsync(X509Certificate serverCertificate, boolean clientCertificateRequired, boolean checkCertificateRevocation)
Task
AuthenticateAsServerAsync(X509Certificate serverCertificate, boolean clientCertificateRequired, SslProtocols enabledSslProtocols, boolean checkCertificateRevocation)
IAsyncResult
BeginAuthenticateAsClient(java.lang.String targetHost, AsyncCallback asyncCallback, NetObject asyncState)
IAsyncResult
BeginAuthenticateAsClient(java.lang.String targetHost, X509CertificateCollection clientCertificates, boolean checkCertificateRevocation, AsyncCallback asyncCallback, NetObject asyncState)
IAsyncResult
BeginAuthenticateAsClient(java.lang.String targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, boolean checkCertificateRevocation, AsyncCallback asyncCallback, NetObject asyncState)
IAsyncResult
BeginAuthenticateAsServer(X509Certificate serverCertificate, boolean clientCertificateRequired, boolean checkCertificateRevocation, AsyncCallback asyncCallback, NetObject asyncState)
IAsyncResult
BeginAuthenticateAsServer(X509Certificate serverCertificate, boolean clientCertificateRequired, SslProtocols enabledSslProtocols, boolean checkCertificateRevocation, AsyncCallback asyncCallback, NetObject asyncState)
IAsyncResult
BeginAuthenticateAsServer(X509Certificate serverCertificate, AsyncCallback asyncCallback, NetObject asyncState)
IAsyncResult
BeginRead(byte[] buffer, int offset, int count, AsyncCallback asyncCallback, NetObject asyncState)
IAsyncResult
BeginRead(JCORefOut dupParam0, int dupParam1, int dupParam2, AsyncCallback dupParam3, NetObject dupParam4)
IAsyncResult
BeginWrite(byte[] buffer, int offset, int count, AsyncCallback asyncCallback, NetObject asyncState)
IAsyncResult
BeginWrite(JCORefOut dupParam0, int dupParam1, int dupParam2, AsyncCallback dupParam3, NetObject dupParam4)
static SslStream
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoSslStream
, a cast assert is made to check if types are compatible.ValueTask
DisposeAsync()
void
EndAuthenticateAsClient(IAsyncResult asyncResult)
void
EndAuthenticateAsServer(IAsyncResult asyncResult)
int
EndRead(IAsyncResult asyncResult)
void
EndWrite(IAsyncResult asyncResult)
void
Flush()
Task
FlushAsync(CancellationToken cancellationToken)
boolean
getCheckCertRevocationStatus()
CipherAlgorithmType
getCipherAlgorithm()
int
getCipherStrength()
HashAlgorithmType
getHashAlgorithm()
int
getHashStrength()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class TypeExchangeAlgorithmType
getKeyExchangeAlgorithm()
int
getKeyExchangeStrength()
X509Certificate
getLocalCertificate()
SslApplicationProtocol
getNegotiatedApplicationProtocol()
TlsCipherSuite
getNegotiatedCipherSuite()
X509Certificate
getRemoteCertificate()
SslProtocols
getSslProtocol()
java.lang.String
getTargetHostName()
TransportContext
getTransportContext()
Task
NegotiateClientCertificateAsync(CancellationToken cancellationToken)
int
Read(byte[] buffer, int offset, int count)
int
Read(JCORefOut dupParam0, int dupParam1, int dupParam2)
int
ReadByte()
long
Seek(long offset, SeekOrigin origin)
void
setJCOInstance(JCObject instance)
void
SetLength(long value)
Task
ShutdownAsync()
void
Write(byte[] buffer)
void
Write(byte[] buffer, int offset, int count)
void
Write(JCORefOut dupParam0)
void
Write(JCORefOut dupParam0, int dupParam1, int dupParam2)
Task
WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
Task
WriteAsync(JCORefOut dupParam0, int dupParam1, int dupParam2, CancellationToken dupParam3)
-
Methods inherited from class system.net.security.AuthenticatedStream
getIsAuthenticated, getIsEncrypted, getIsMutuallyAuthenticated, getIsServer, getIsSigned, getLeaveInnerStreamOpen
-
Methods inherited from class system.io.Stream
close, Close, CopyTo, CopyTo, CopyToAsync, CopyToAsync, CopyToAsync, CopyToAsync, Dispose, FlushAsync, getCanRead, getCanSeek, getCanTimeout, getCanWrite, getLength, getPosition, getReadTimeout, getWriteTimeout, ReadExactly, ReadExactly, ReadExactlyAsync, ReadExactlyAsync, setPosition, setReadTimeout, setWriteTimeout, Synchronized, WriteAsync, WriteAsync, WriteByte
-
Methods inherited from class system.MarshalByRefObject
GetLifetimeService, InitializeLifetimeService
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Net.Security, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Net.Security- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Net.Security.SslStream- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SslStream
public SslStream(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
SslStream
public SslStream() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
SslStream
public SslStream(Stream innerStream, boolean leaveInnerStreamOpen, RemoteCertificateValidationCallback userCertificateValidationCallback, LocalCertificateSelectionCallback userCertificateSelectionCallback, EncryptionPolicy encryptionPolicy) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException, SocketException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
FormatException
SocketException
OutOfMemoryException
-
SslStream
public SslStream(Stream innerStream, boolean leaveInnerStreamOpen, RemoteCertificateValidationCallback userCertificateValidationCallback, LocalCertificateSelectionCallback userCertificateSelectionCallback) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, SocketException, IndexOutOfRangeException
-
SslStream
public SslStream(Stream innerStream, boolean leaveInnerStreamOpen, RemoteCertificateValidationCallback userCertificateValidationCallback) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, SocketException, IndexOutOfRangeException
-
SslStream
public SslStream(Stream innerStream, boolean leaveInnerStreamOpen) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, SocketException, IndexOutOfRangeException
-
SslStream
public SslStream(Stream innerStream) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, ObjectDisposedException, SocketException, ArrayTypeMismatchException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classAuthenticatedStream
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classAuthenticatedStream
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classAuthenticatedStream
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classAuthenticatedStream
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classAuthenticatedStream
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classAuthenticatedStream
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static SslStream cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoSslStream
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
SslStream
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
EndRead
public int EndRead(IAsyncResult asyncResult) throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, EventSourceException, TaskSchedulerException, TaskCanceledException, AggregateException
- Overrides:
EndRead
in classStream
- Throws:
java.lang.Throwable
ObjectDisposedException
PlatformNotSupportedException
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
CultureNotFoundException
InvalidOperationException
EventSourceException
TaskSchedulerException
TaskCanceledException
AggregateException
-
Read
public int Read(byte[] buffer, int offset, int count) throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, ArrayTypeMismatchException, EventSourceException, TaskSchedulerException, TaskCanceledException, AggregateException
- Overrides:
Read
in classStream
- Throws:
java.lang.Throwable
ObjectDisposedException
PlatformNotSupportedException
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
CultureNotFoundException
InvalidOperationException
ArrayTypeMismatchException
EventSourceException
TaskSchedulerException
TaskCanceledException
AggregateException
-
Read
public int Read(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, ArrayTypeMismatchException, EventSourceException, TaskSchedulerException, TaskCanceledException, AggregateException
- Overrides:
Read
in classStream
- Throws:
java.lang.Throwable
ObjectDisposedException
PlatformNotSupportedException
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
CultureNotFoundException
InvalidOperationException
ArrayTypeMismatchException
EventSourceException
TaskSchedulerException
TaskCanceledException
AggregateException
-
ReadByte
public int ReadByte() throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, NotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException
- Overrides:
ReadByte
in classStream
- Throws:
java.lang.Throwable
ObjectDisposedException
PlatformNotSupportedException
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
CultureNotFoundException
InvalidOperationException
NotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
-
Seek
public long Seek(long offset, SeekOrigin origin) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException
- Overrides:
Seek
in classStream
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
NotSupportedException
-
BeginAuthenticateAsClient
public IAsyncResult BeginAuthenticateAsClient(java.lang.String targetHost, AsyncCallback asyncCallback, NetObject asyncState) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
BeginAuthenticateAsClient
public IAsyncResult BeginAuthenticateAsClient(java.lang.String targetHost, X509CertificateCollection clientCertificates, boolean checkCertificateRevocation, AsyncCallback asyncCallback, NetObject asyncState) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
BeginAuthenticateAsClient
public IAsyncResult BeginAuthenticateAsClient(java.lang.String targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, boolean checkCertificateRevocation, AsyncCallback asyncCallback, NetObject asyncState) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, EventSourceException
-
BeginAuthenticateAsServer
public IAsyncResult BeginAuthenticateAsServer(X509Certificate serverCertificate, boolean clientCertificateRequired, boolean checkCertificateRevocation, AsyncCallback asyncCallback, NetObject asyncState) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, CryptographicException, AuthenticationException, ObjectDisposedException
-
BeginAuthenticateAsServer
public IAsyncResult BeginAuthenticateAsServer(X509Certificate serverCertificate, boolean clientCertificateRequired, SslProtocols enabledSslProtocols, boolean checkCertificateRevocation, AsyncCallback asyncCallback, NetObject asyncState) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException, CryptographicException, OutOfMemoryException, SecurityException, AuthenticationException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
NotSupportedException
CryptographicException
OutOfMemoryException
SecurityException
AuthenticationException
-
BeginAuthenticateAsServer
public IAsyncResult BeginAuthenticateAsServer(X509Certificate serverCertificate, AsyncCallback asyncCallback, NetObject asyncState) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, CryptographicException, AuthenticationException, ObjectDisposedException
-
BeginRead
public IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback asyncCallback, NetObject asyncState) throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, NotSupportedException, OperationCanceledException, TaskCanceledException, AggregateException, SemaphoreFullException, TaskSchedulerException
- Overrides:
BeginRead
in classStream
- Throws:
java.lang.Throwable
ObjectDisposedException
PlatformNotSupportedException
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
CultureNotFoundException
InvalidOperationException
NotSupportedException
OperationCanceledException
TaskCanceledException
AggregateException
SemaphoreFullException
TaskSchedulerException
-
BeginRead
public IAsyncResult BeginRead(JCORefOut dupParam0, int dupParam1, int dupParam2, AsyncCallback dupParam3, NetObject dupParam4) throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, NotSupportedException, OperationCanceledException, TaskCanceledException, AggregateException, SemaphoreFullException, TaskSchedulerException
- Overrides:
BeginRead
in classStream
- Throws:
java.lang.Throwable
ObjectDisposedException
PlatformNotSupportedException
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
CultureNotFoundException
InvalidOperationException
NotSupportedException
OperationCanceledException
TaskCanceledException
AggregateException
SemaphoreFullException
TaskSchedulerException
-
BeginWrite
public IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback asyncCallback, NetObject asyncState) throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, NotSupportedException, OperationCanceledException, TaskCanceledException, AggregateException, SemaphoreFullException, TaskSchedulerException
- Overrides:
BeginWrite
in classStream
- Throws:
java.lang.Throwable
ObjectDisposedException
PlatformNotSupportedException
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
CultureNotFoundException
InvalidOperationException
NotSupportedException
OperationCanceledException
TaskCanceledException
AggregateException
SemaphoreFullException
TaskSchedulerException
-
BeginWrite
public IAsyncResult BeginWrite(JCORefOut dupParam0, int dupParam1, int dupParam2, AsyncCallback dupParam3, NetObject dupParam4) throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, NotSupportedException, OperationCanceledException, TaskCanceledException, AggregateException, SemaphoreFullException, TaskSchedulerException
- Overrides:
BeginWrite
in classStream
- Throws:
java.lang.Throwable
ObjectDisposedException
PlatformNotSupportedException
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
CultureNotFoundException
InvalidOperationException
NotSupportedException
OperationCanceledException
TaskCanceledException
AggregateException
SemaphoreFullException
TaskSchedulerException
-
AuthenticateAsClientAsync
public Task AuthenticateAsClientAsync(SslClientAuthenticationOptions sslClientAuthenticationOptions, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException, OverflowException
-
AuthenticateAsClientAsync
public Task AuthenticateAsClientAsync(java.lang.String targetHost, X509CertificateCollection clientCertificates, boolean checkCertificateRevocation) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
AuthenticateAsClientAsync
public Task AuthenticateAsClientAsync(java.lang.String targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, boolean checkCertificateRevocation) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, OverflowException
-
AuthenticateAsClientAsync
public Task AuthenticateAsClientAsync(java.lang.String targetHost) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException
-
AuthenticateAsServerAsync
public Task AuthenticateAsServerAsync(SslServerAuthenticationOptions sslServerAuthenticationOptions, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException, CryptographicException, OverflowException, OutOfMemoryException, EventSourceException, SecurityException, AuthenticationException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
FormatException
CryptographicException
OverflowException
OutOfMemoryException
EventSourceException
SecurityException
AuthenticationException
-
AuthenticateAsServerAsync
public Task AuthenticateAsServerAsync(X509Certificate serverCertificate, boolean clientCertificateRequired, boolean checkCertificateRevocation) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException, CryptographicException, OutOfMemoryException, FormatException, EventSourceException, SecurityException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, AuthenticationException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
NotSupportedException
CryptographicException
OutOfMemoryException
FormatException
EventSourceException
SecurityException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
AuthenticationException
-
AuthenticateAsServerAsync
public Task AuthenticateAsServerAsync(X509Certificate serverCertificate, boolean clientCertificateRequired, SslProtocols enabledSslProtocols, boolean checkCertificateRevocation) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException, CryptographicException, OutOfMemoryException, FormatException, EventSourceException, SecurityException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, AuthenticationException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
NotSupportedException
CryptographicException
OutOfMemoryException
FormatException
EventSourceException
SecurityException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
AuthenticationException
-
AuthenticateAsServerAsync
public Task AuthenticateAsServerAsync(X509Certificate serverCertificate) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, CryptographicException, OutOfMemoryException, SecurityException, AuthenticationException, ObjectDisposedException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
NotSupportedException
InvalidOperationException
CryptographicException
OutOfMemoryException
SecurityException
AuthenticationException
ObjectDisposedException
-
FlushAsync
public Task FlushAsync(CancellationToken cancellationToken) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, OutOfMemoryException, EventSourceException, IndexOutOfRangeException
- Overrides:
FlushAsync
in classStream
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
PlatformNotSupportedException
InvalidOperationException
OutOfMemoryException
EventSourceException
IndexOutOfRangeException
-
NegotiateClientCertificateAsync
public Task NegotiateClientCertificateAsync(CancellationToken cancellationToken) throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
-
ShutdownAsync
public Task ShutdownAsync() throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, NotSupportedException, IndexOutOfRangeException, EventSourceException, CryptographicException, FormatException, Win32Exception, MissingMethodException, TargetInvocationException, AuthenticationException, UnreachableException, OperationCanceledException, SemaphoreFullException
- Throws:
java.lang.Throwable
ObjectDisposedException
PlatformNotSupportedException
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
CultureNotFoundException
InvalidOperationException
NotSupportedException
IndexOutOfRangeException
EventSourceException
CryptographicException
FormatException
Win32Exception
MissingMethodException
TargetInvocationException
AuthenticationException
UnreachableException
OperationCanceledException
SemaphoreFullException
-
WriteAsync
public Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, IndexOutOfRangeException
- Overrides:
WriteAsync
in classStream
- Throws:
java.lang.Throwable
ObjectDisposedException
PlatformNotSupportedException
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
CultureNotFoundException
InvalidOperationException
IndexOutOfRangeException
-
WriteAsync
public Task WriteAsync(JCORefOut dupParam0, int dupParam1, int dupParam2, CancellationToken dupParam3) throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, IndexOutOfRangeException
- Overrides:
WriteAsync
in classStream
- Throws:
java.lang.Throwable
ObjectDisposedException
PlatformNotSupportedException
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
CultureNotFoundException
InvalidOperationException
IndexOutOfRangeException
-
DisposeAsync
public ValueTask DisposeAsync() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException
- Overrides:
DisposeAsync
in classAuthenticatedStream
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
-
AuthenticateAsClient
public void AuthenticateAsClient(SslClientAuthenticationOptions sslClientAuthenticationOptions) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException, OverflowException, EventSourceException, TaskSchedulerException, OperationCanceledException, TaskCanceledException, AggregateException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
FormatException
OverflowException
EventSourceException
TaskSchedulerException
OperationCanceledException
TaskCanceledException
AggregateException
-
AuthenticateAsClient
public void AuthenticateAsClient(java.lang.String targetHost, X509CertificateCollection clientCertificates, boolean checkCertificateRevocation) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, TaskSchedulerException, TaskCanceledException, AggregateException
-
AuthenticateAsClient
public void AuthenticateAsClient(java.lang.String targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, boolean checkCertificateRevocation) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, OverflowException, EventSourceException, TaskSchedulerException, TaskCanceledException, AggregateException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
OverflowException
EventSourceException
TaskSchedulerException
TaskCanceledException
AggregateException
-
AuthenticateAsClient
public void AuthenticateAsClient(java.lang.String targetHost) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, TaskSchedulerException, TaskCanceledException, AggregateException
-
AuthenticateAsServer
public void AuthenticateAsServer(SslServerAuthenticationOptions sslServerAuthenticationOptions) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException, CryptographicException, OverflowException, OutOfMemoryException, EventSourceException, SecurityException, AuthenticationException, TaskSchedulerException, OperationCanceledException, TaskCanceledException, AggregateException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
FormatException
CryptographicException
OverflowException
OutOfMemoryException
EventSourceException
SecurityException
AuthenticationException
TaskSchedulerException
OperationCanceledException
TaskCanceledException
AggregateException
-
AuthenticateAsServer
public void AuthenticateAsServer(X509Certificate serverCertificate, boolean clientCertificateRequired, boolean checkCertificateRevocation) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, CryptographicException, OutOfMemoryException, SecurityException, AuthenticationException, ObjectDisposedException, TaskSchedulerException, TaskCanceledException, AggregateException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
NotSupportedException
InvalidOperationException
CryptographicException
OutOfMemoryException
SecurityException
AuthenticationException
ObjectDisposedException
TaskSchedulerException
TaskCanceledException
AggregateException
-
AuthenticateAsServer
public void AuthenticateAsServer(X509Certificate serverCertificate, boolean clientCertificateRequired, SslProtocols enabledSslProtocols, boolean checkCertificateRevocation) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException, CryptographicException, OutOfMemoryException, FormatException, EventSourceException, SecurityException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, AuthenticationException, TaskSchedulerException, TaskCanceledException, AggregateException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
NotSupportedException
CryptographicException
OutOfMemoryException
FormatException
EventSourceException
SecurityException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
AuthenticationException
TaskSchedulerException
TaskCanceledException
AggregateException
-
AuthenticateAsServer
public void AuthenticateAsServer(X509Certificate serverCertificate) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, CryptographicException, OutOfMemoryException, SecurityException, AuthenticationException, ObjectDisposedException, TaskSchedulerException, TaskCanceledException, AggregateException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
NotSupportedException
InvalidOperationException
CryptographicException
OutOfMemoryException
SecurityException
AuthenticationException
ObjectDisposedException
TaskSchedulerException
TaskCanceledException
AggregateException
-
EndAuthenticateAsClient
public void EndAuthenticateAsClient(IAsyncResult asyncResult) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, EventSourceException, InvalidOperationException, TaskSchedulerException, TaskCanceledException, AggregateException
-
EndAuthenticateAsServer
public void EndAuthenticateAsServer(IAsyncResult asyncResult) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, EventSourceException, InvalidOperationException, TaskSchedulerException, TaskCanceledException, AggregateException
-
EndWrite
public void EndWrite(IAsyncResult asyncResult) throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, EventSourceException, TaskSchedulerException, TaskCanceledException, AggregateException
- Overrides:
EndWrite
in classStream
- Throws:
java.lang.Throwable
ObjectDisposedException
PlatformNotSupportedException
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
CultureNotFoundException
InvalidOperationException
EventSourceException
TaskSchedulerException
TaskCanceledException
AggregateException
-
Flush
public void Flush() throws java.lang.Throwable
-
SetLength
public void SetLength(long value) throws java.lang.Throwable
-
Write
public void Write(byte[] buffer, int offset, int count) throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, EventSourceException, TaskSchedulerException, TaskCanceledException, AggregateException
- Overrides:
Write
in classStream
- Throws:
java.lang.Throwable
ObjectDisposedException
PlatformNotSupportedException
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
CultureNotFoundException
InvalidOperationException
EventSourceException
TaskSchedulerException
TaskCanceledException
AggregateException
-
Write
public void Write(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, EventSourceException, TaskSchedulerException, TaskCanceledException, AggregateException
- Overrides:
Write
in classStream
- Throws:
java.lang.Throwable
ObjectDisposedException
PlatformNotSupportedException
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
CultureNotFoundException
InvalidOperationException
EventSourceException
TaskSchedulerException
TaskCanceledException
AggregateException
-
Write
public void Write(byte[] buffer) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Write
public void Write(JCORefOut dupParam0) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCheckCertRevocationStatus
public boolean getCheckCertRevocationStatus() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCipherStrength
public int getCipherStrength() throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
-
getHashStrength
public int getHashStrength() throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
-
getKeyExchangeStrength
public int getKeyExchangeStrength() throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
-
getNegotiatedApplicationProtocol
public SslApplicationProtocol getNegotiatedApplicationProtocol() throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, ArrayTypeMismatchException
-
getNegotiatedCipherSuite
public TlsCipherSuite getNegotiatedCipherSuite() throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
-
getTransportContext
public TransportContext getTransportContext() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCipherAlgorithm
public CipherAlgorithmType getCipherAlgorithm() throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
-
getKeyExchangeAlgorithm
public ExchangeAlgorithmType getKeyExchangeAlgorithm() throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
-
getHashAlgorithm
public HashAlgorithmType getHashAlgorithm() throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
-
getSslProtocol
public SslProtocols getSslProtocol() throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
-
getLocalCertificate
public X509Certificate getLocalCertificate() throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, FormatException, OutOfMemoryException, EventSourceException
-
getRemoteCertificate
public X509Certificate getRemoteCertificate() throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
-
getTargetHostName
public java.lang.String getTargetHostName() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-