public class TlsSession extends NetObject implements java.lang.AutoCloseable
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Net.Security.TlsSession
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Net.Security, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.Net.Security
|
static java.lang.String |
className
Qualified class name: System.Net.Security.TlsSession
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
TlsSession() |
TlsSession(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
SslPolicyErrors |
AcceptWithDefaultValidation()
Invokes the .NET member AcceptWithDefaultValidation.
|
static TlsSession |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into TlsSession, a cast assert is made to check if types are compatible. |
void |
close() |
void |
Dispose()
Invokes the .NET member Dispose.
|
IReadOnlyList_1 |
GetAcceptableIssuers()
Invokes the .NET member GetAcceptableIssuers.
|
ChannelBinding |
GetChannelBinding(ChannelBindingKind kind)
Invokes the .NET member GetChannelBinding.
|
Nullable_1 |
getClientHelloInfo()
Gets the value of the .NET property ClientHelloInfo.
|
int |
GetClientHelloLength()
Invokes the .NET member GetClientHelloLength.
|
boolean |
getHasPendingOutput()
Gets the value of the .NET property HasPendingOutput.
|
boolean |
getIsHandshakeComplete()
Gets the value of the .NET property IsHandshakeComplete.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
X509Certificate2 |
getLocalCertificate()
Gets the value of the .NET property LocalCertificate.
|
SslApplicationProtocol |
getNegotiatedApplicationProtocol()
Gets the value of the .NET property NegotiatedApplicationProtocol.
|
TlsCipherSuite |
getNegotiatedCipherSuite()
Gets the value of the .NET property NegotiatedCipherSuite.
|
SslProtocols |
getNegotiatedProtocol()
Gets the value of the .NET property NegotiatedProtocol.
|
X509Certificate2 |
GetRemoteCertificate()
Invokes the .NET member GetRemoteCertificate.
|
X509Certificate2Collection |
GetRemoteCertificates()
Invokes the .NET member GetRemoteCertificates.
|
java.lang.String |
getTargetHostName()
Gets the value of the .NET property TargetHostName.
|
void |
SetClientCertificateContext(SslStreamCertificateContext context)
Invokes the .NET member SetClientCertificateContext.
|
void |
SetContext(TlsContext context)
Invokes the .NET member SetContext.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
SetRemoteCertificateValidationResult(SslPolicyErrors errors)
Invokes the .NET member SetRemoteCertificateValidationResult.
|
void |
setTargetHostName(java.lang.String TargetHostName)
Sets the value of the .NET property TargetHostName.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public TlsSession()
throws java.lang.Throwable
java.lang.Throwablepublic TlsSession(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic SslPolicyErrors AcceptWithDefaultValidation() throws java.lang.Throwable, PlatformNotSupportedException, ObjectDisposedException, ArgumentNullException, ArgumentException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, CryptographicException, OutOfMemoryException, FormatException, EventSourceException, ArrayTypeMismatchException, UnreachableException, Win32Exception, AuthenticationException
java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itCryptographicException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itUnreachableException - if the .NET member raises itWin32Exception - if the .NET member raises itAuthenticationException - if the .NET member raises itpublic static TlsSession cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into TlsSession, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedTlsSession instancejava.lang.Throwable - in case of error during cast operationpublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic void Dispose()
throws java.lang.Throwable,
PlatformNotSupportedException,
ObjectDisposedException,
ArgumentNullException,
NotSupportedException,
ArgumentException,
IndexOutOfRangeException,
OutOfMemoryException,
ArgumentOutOfRangeException,
InvalidOperationException,
FormatException,
EventSourceException,
ThreadStateException
java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArgumentNullException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itThreadStateException - if the .NET member raises itpublic IReadOnlyList_1 GetAcceptableIssuers() throws java.lang.Throwable, PlatformNotSupportedException, ObjectDisposedException, IndexOutOfRangeException, ArgumentOutOfRangeException, ArgumentNullException, FormatException, ArgumentException, NullReferenceException, NotSupportedException, UnreachableException, OutOfMemoryException, CryptographicException, InvalidOperationException, EventSourceException
java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itFormatException - if the .NET member raises itArgumentException - if the .NET member raises itNullReferenceException - if the .NET member raises itNotSupportedException - if the .NET member raises itUnreachableException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itCryptographicException - if the .NET member raises itInvalidOperationException - if the .NET member raises itEventSourceException - if the .NET member raises itpublic ChannelBinding GetChannelBinding(ChannelBindingKind kind) throws java.lang.Throwable, PlatformNotSupportedException, ObjectDisposedException, ArgumentNullException, ArgumentException, NullReferenceException, NotSupportedException, FormatException, ArgumentOutOfRangeException, UnreachableException, OutOfMemoryException, CryptographicException, InvalidOperationException, EventSourceException
kind - the argument of type ChannelBindingKindjava.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itNullReferenceException - if the .NET member raises itNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itUnreachableException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itCryptographicException - if the .NET member raises itInvalidOperationException - if the .NET member raises itEventSourceException - if the .NET member raises itpublic Nullable_1 getClientHelloInfo() throws java.lang.Throwable, PlatformNotSupportedException, ObjectDisposedException
java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic int GetClientHelloLength()
throws java.lang.Throwable,
PlatformNotSupportedException,
ObjectDisposedException
java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic boolean getHasPendingOutput()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsHandshakeComplete()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic X509Certificate2 getLocalCertificate() throws java.lang.Throwable, PlatformNotSupportedException, ObjectDisposedException, IndexOutOfRangeException, ArgumentOutOfRangeException, ArgumentNullException, FormatException, ArgumentException, NullReferenceException, NotSupportedException, UnreachableException, OutOfMemoryException, CryptographicException, InvalidOperationException, EventSourceException
java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itFormatException - if the .NET member raises itArgumentException - if the .NET member raises itNullReferenceException - if the .NET member raises itNotSupportedException - if the .NET member raises itUnreachableException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itCryptographicException - if the .NET member raises itInvalidOperationException - if the .NET member raises itEventSourceException - if the .NET member raises itpublic SslApplicationProtocol getNegotiatedApplicationProtocol() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itpublic TlsCipherSuite getNegotiatedCipherSuite() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic SslProtocols getNegotiatedProtocol() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic X509Certificate2 GetRemoteCertificate() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, OutOfMemoryException, InvalidOperationException, ArgumentException, MissingMethodException, TargetInvocationException
java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itpublic X509Certificate2Collection GetRemoteCertificates() throws java.lang.Throwable, PlatformNotSupportedException, ObjectDisposedException
java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic java.lang.String getTargetHostName()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException,
ObjectDisposedException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void SetClientCertificateContext(SslStreamCertificateContext context) throws java.lang.Throwable, PlatformNotSupportedException, ObjectDisposedException, ArgumentNullException, ArgumentException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, IndexOutOfRangeException, FormatException, OutOfMemoryException, CryptographicException, EventSourceException, Win32Exception, SecurityException, MissingMethodException, TargetInvocationException, AuthenticationException
context - the argument of type SslStreamCertificateContextjava.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itCryptographicException - if the .NET member raises itEventSourceException - if the .NET member raises itWin32Exception - if the .NET member raises itSecurityException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itAuthenticationException - if the .NET member raises itpublic void SetContext(TlsContext context) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException, CultureNotFoundException, IndexOutOfRangeException, FormatException, OutOfMemoryException, CryptographicException, EventSourceException, Win32Exception, SecurityException, MissingMethodException, TargetInvocationException, AuthenticationException
context - the argument of type TlsContextjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itCryptographicException - if the .NET member raises itEventSourceException - if the .NET member raises itWin32Exception - if the .NET member raises itSecurityException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itAuthenticationException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying objectpublic void SetRemoteCertificateValidationResult(SslPolicyErrors errors) throws java.lang.Throwable, PlatformNotSupportedException, ObjectDisposedException, ArgumentNullException, ArgumentException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
errors - the argument of type SslPolicyErrorsjava.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic void setTargetHostName(java.lang.String TargetHostName)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException,
ObjectDisposedException
TargetHostName - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itObjectDisposedException - if the .NET member raises it