Class LdapConnection
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.directoryservices.protocols.DirectoryConnection
-
- system.directoryservices.protocols.LdapConnection
-
- All Implemented Interfaces:
java.lang.AutoCloseable,IJCOBridgeReflected
public class LdapConnection extends DirectoryConnection implements java.lang.AutoCloseable
The base .NET class managing System.DirectoryServices.Protocols.LdapConnection, System.DirectoryServices.Protocols, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.DirectoryServices.Protocols.LdapConnection
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.StringassemblyFullNameFully assembly qualified name: System.DirectoryServices.Protocols, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.DirectoryServices.Protocolsstatic java.lang.StringclassNameQualified class name: System.DirectoryServices.Protocols.LdapConnectionstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description LdapConnection()LdapConnection(java.lang.Object instance)Internal constructor.LdapConnection(java.lang.String server)LdapConnection(LdapDirectoryIdentifier identifier)LdapConnection(LdapDirectoryIdentifier identifier, NetworkCredential credential)LdapConnection(LdapDirectoryIdentifier identifier, NetworkCredential credential, AuthType authType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidAbort(IAsyncResult asyncResult)IAsyncResultBeginSendRequest(DirectoryRequest request, PartialResultProcessing partialMode, AsyncCallback callback, NetObject state)IAsyncResultBeginSendRequest(DirectoryRequest request, TimeSpan requestTimeout, PartialResultProcessing partialMode, AsyncCallback callback, NetObject state)voidBind()voidBind(NetworkCredential newCredential)static LdapConnectioncast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoLdapConnection, a cast assert is made to check if types are compatible.voidclose()voidDispose()DirectoryResponseEndSendRequest(IAsyncResult asyncResult)AuthTypegetAuthType()booleangetAutoBind()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypePartialResultsCollectionGetPartialResults(IAsyncResult asyncResult)LdapSessionOptionsgetSessionOptions()DirectoryResponseSendRequest(DirectoryRequest request)DirectoryResponseSendRequest(DirectoryRequest request, TimeSpan requestTimeout)voidsetAuthType(AuthType AuthType)voidsetAutoBind(boolean AutoBind)voidsetJCOInstance(JCObject instance)-
Methods inherited from class system.directoryservices.protocols.DirectoryConnection
getClientCertificates, getDirectory, getTimeout, setCredential, setTimeout
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.DirectoryServices.Protocols, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.DirectoryServices.Protocols- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.DirectoryServices.Protocols.LdapConnection- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LdapConnection
public LdapConnection(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
LdapConnection
public LdapConnection() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
LdapConnection
public LdapConnection(LdapDirectoryIdentifier identifier) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, FormatException, UriFormatException, AccessViolationException, XPathException, DsmlInvalidDocumentException, NotSupportedException, DirectoryOperationException, LdapException, DirectoryException, OutOfMemoryException, CryptographicException, InvalidEnumArgumentException, MissingMethodException, TargetInvocationException
- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionArgumentExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionPlatformNotSupportedExceptionFormatExceptionUriFormatExceptionAccessViolationExceptionXPathExceptionDsmlInvalidDocumentExceptionNotSupportedExceptionDirectoryOperationExceptionLdapExceptionDirectoryExceptionOutOfMemoryExceptionCryptographicExceptionInvalidEnumArgumentExceptionMissingMethodExceptionTargetInvocationException
-
LdapConnection
public LdapConnection(LdapDirectoryIdentifier identifier, NetworkCredential credential) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, FormatException, UriFormatException, AccessViolationException, XPathException, DsmlInvalidDocumentException, NotSupportedException, DirectoryOperationException, LdapException, DirectoryException, OutOfMemoryException, CryptographicException, InvalidEnumArgumentException, MissingMethodException, TargetInvocationException
- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionArgumentExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionPlatformNotSupportedExceptionFormatExceptionUriFormatExceptionAccessViolationExceptionXPathExceptionDsmlInvalidDocumentExceptionNotSupportedExceptionDirectoryOperationExceptionLdapExceptionDirectoryExceptionOutOfMemoryExceptionCryptographicExceptionInvalidEnumArgumentExceptionMissingMethodExceptionTargetInvocationException
-
LdapConnection
public LdapConnection(LdapDirectoryIdentifier identifier, NetworkCredential credential, AuthType authType) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, SecurityException, UriFormatException, OutOfMemoryException, AccessViolationException, XPathException, DsmlInvalidDocumentException, NotSupportedException, FormatException, DirectoryOperationException, LdapException, DirectoryException, CryptographicException, InvalidEnumArgumentException
- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionArgumentExceptionNotImplementedExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionPlatformNotSupportedExceptionSecurityExceptionUriFormatExceptionOutOfMemoryExceptionAccessViolationExceptionXPathExceptionDsmlInvalidDocumentExceptionNotSupportedExceptionFormatExceptionDirectoryOperationExceptionLdapExceptionDirectoryExceptionCryptographicExceptionInvalidEnumArgumentException
-
LdapConnection
public LdapConnection(java.lang.String server) throws java.lang.Throwable, ArgumentNullException, ArgumentException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, AccessViolationException, XPathException, DsmlInvalidDocumentException, NotSupportedException, DirectoryOperationException, LdapException, DirectoryException, OutOfMemoryException, CryptographicException, InvalidEnumArgumentException, MissingMethodException, TargetInvocationException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionAccessViolationExceptionXPathExceptionDsmlInvalidDocumentExceptionNotSupportedExceptionDirectoryOperationExceptionLdapExceptionDirectoryExceptionOutOfMemoryExceptionCryptographicExceptionInvalidEnumArgumentExceptionMissingMethodExceptionTargetInvocationException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classDirectoryConnection- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classDirectoryConnection- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classDirectoryConnection- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classDirectoryConnection- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classDirectoryConnection
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classDirectoryConnection- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static LdapConnection cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoLdapConnection, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
LdapConnectioninstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
EndSendRequest
public DirectoryResponse EndSendRequest(IAsyncResult asyncResult) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, FormatException, AbandonedMutexException, RankException
- Throws:
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionFormatExceptionAbandonedMutexExceptionRankException
-
SendRequest
public DirectoryResponse SendRequest(DirectoryRequest request) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, NotSupportedException, PlatformNotSupportedException, LdapException, DirectoryOperationException, OutOfMemoryException, AccessViolationException, IndexOutOfRangeException, UriFormatException, XPathException, DsmlInvalidDocumentException, FormatException, DirectoryException
- Overrides:
SendRequestin classDirectoryConnection- Throws:
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionNotSupportedExceptionPlatformNotSupportedExceptionLdapExceptionDirectoryOperationExceptionOutOfMemoryExceptionAccessViolationExceptionIndexOutOfRangeExceptionUriFormatExceptionXPathExceptionDsmlInvalidDocumentExceptionFormatExceptionDirectoryException
-
SendRequest
public DirectoryResponse SendRequest(DirectoryRequest request, TimeSpan requestTimeout) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, PlatformNotSupportedException, LdapException, DirectoryOperationException, OutOfMemoryException, CryptographicException, AccessViolationException, FormatException, SecurityException, UriFormatException, XPathException, DsmlInvalidDocumentException, DirectoryException
- Throws:
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionPlatformNotSupportedExceptionLdapExceptionDirectoryOperationExceptionOutOfMemoryExceptionCryptographicExceptionAccessViolationExceptionFormatExceptionSecurityExceptionUriFormatExceptionXPathExceptionDsmlInvalidDocumentExceptionDirectoryException
-
GetPartialResults
public PartialResultsCollection GetPartialResults(IAsyncResult asyncResult) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, FormatException, RankException, XPathException
- Throws:
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionFormatExceptionRankExceptionXPathException
-
BeginSendRequest
public IAsyncResult BeginSendRequest(DirectoryRequest request, PartialResultProcessing partialMode, AsyncCallback callback, NetObject state) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, NotImplementedException, IndexOutOfRangeException, MissingManifestResourceException, FormatException, InvalidEnumArgumentException, NotSupportedException, PlatformNotSupportedException, LdapException, DirectoryOperationException, OutOfMemoryException, AccessViolationException, WaitHandleCannotBeOpenedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, InvalidTimeZoneException, DirectoryException
- Throws:
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionNotImplementedExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionFormatExceptionInvalidEnumArgumentExceptionNotSupportedExceptionPlatformNotSupportedExceptionLdapExceptionDirectoryOperationExceptionOutOfMemoryExceptionAccessViolationExceptionWaitHandleCannotBeOpenedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionInvalidTimeZoneExceptionDirectoryException
-
BeginSendRequest
public IAsyncResult BeginSendRequest(DirectoryRequest request, TimeSpan requestTimeout, PartialResultProcessing partialMode, AsyncCallback callback, NetObject state) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, NotImplementedException, MissingManifestResourceException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, PlatformNotSupportedException, LdapException, DirectoryOperationException, OutOfMemoryException, CryptographicException, AccessViolationException, WaitHandleCannotBeOpenedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, InvalidTimeZoneException, DirectoryException
- Throws:
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionNotImplementedExceptionMissingManifestResourceExceptionIndexOutOfRangeExceptionFormatExceptionInvalidEnumArgumentExceptionPlatformNotSupportedExceptionLdapExceptionDirectoryOperationExceptionOutOfMemoryExceptionCryptographicExceptionAccessViolationExceptionWaitHandleCannotBeOpenedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionInvalidTimeZoneExceptionDirectoryException
-
Abort
public void Abort(IAsyncResult asyncResult) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, FormatException, RankException
- Throws:
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionFormatExceptionRankException
-
Bind
public void Bind() throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, OutOfMemoryException, CryptographicException, InvalidOperationException, ArgumentException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, NotSupportedException, PlatformNotSupportedException, LdapException, DirectoryOperationException- Throws:
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionOutOfMemoryExceptionCryptographicExceptionInvalidOperationExceptionArgumentExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionNotSupportedExceptionPlatformNotSupportedExceptionLdapExceptionDirectoryOperationException
-
Bind
public void Bind(NetworkCredential newCredential) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, OutOfMemoryException, CryptographicException, InvalidOperationException, ArgumentException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, NotSupportedException, PlatformNotSupportedException, LdapException, DirectoryOperationException
- Throws:
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionOutOfMemoryExceptionCryptographicExceptionInvalidOperationExceptionArgumentExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionNotSupportedExceptionPlatformNotSupportedExceptionLdapExceptionDirectoryOperationException
-
Dispose
public void Dispose() throws java.lang.Throwable, ArgumentException, ArgumentNullException- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullException
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
getAutoBind
public boolean getAutoBind() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setAutoBind
public void setAutoBind(boolean AutoBind) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getAuthType
public AuthType getAuthType() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setAuthType
public void setAuthType(AuthType AuthType) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionFormatExceptionInvalidEnumArgumentException
-
getSessionOptions
public LdapSessionOptions getSessionOptions() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-