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.String
assemblyFullName
Fully assembly qualified name: System.DirectoryServices.Protocols, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.DirectoryServices.Protocolsstatic java.lang.String
className
Qualified class name: System.DirectoryServices.Protocols.LdapConnectionstatic JCType
classType
The 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 void
Abort(IAsyncResult asyncResult)
IAsyncResult
BeginSendRequest(DirectoryRequest request, PartialResultProcessing partialMode, AsyncCallback callback, NetObject state)
IAsyncResult
BeginSendRequest(DirectoryRequest request, TimeSpan requestTimeout, PartialResultProcessing partialMode, AsyncCallback callback, NetObject state)
void
Bind()
void
Bind(NetworkCredential newCredential)
static LdapConnection
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoLdapConnection
, a cast assert is made to check if types are compatible.void
close()
void
Dispose()
DirectoryResponse
EndSendRequest(IAsyncResult asyncResult)
AuthType
getAuthType()
boolean
getAutoBind()
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 TypePartialResultsCollection
GetPartialResults(IAsyncResult asyncResult)
LdapSessionOptions
getSessionOptions()
DirectoryResponse
SendRequest(DirectoryRequest request)
DirectoryResponse
SendRequest(DirectoryRequest request, TimeSpan requestTimeout)
void
setAuthType(AuthType AuthType)
void
setAutoBind(boolean AutoBind)
void
setJCOInstance(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.Throwable
Internal 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.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
NotImplementedException
MissingManifestResourceException
ObjectDisposedException
InvalidOperationException
PlatformNotSupportedException
FormatException
UriFormatException
AccessViolationException
XPathException
DsmlInvalidDocumentException
NotSupportedException
DirectoryOperationException
LdapException
DirectoryException
OutOfMemoryException
CryptographicException
InvalidEnumArgumentException
MissingMethodException
TargetInvocationException
-
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.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
NotImplementedException
MissingManifestResourceException
ObjectDisposedException
InvalidOperationException
PlatformNotSupportedException
FormatException
UriFormatException
AccessViolationException
XPathException
DsmlInvalidDocumentException
NotSupportedException
DirectoryOperationException
LdapException
DirectoryException
OutOfMemoryException
CryptographicException
InvalidEnumArgumentException
MissingMethodException
TargetInvocationException
-
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.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
NotImplementedException
CultureNotFoundException
IndexOutOfRangeException
MissingManifestResourceException
ObjectDisposedException
InvalidOperationException
PlatformNotSupportedException
SecurityException
UriFormatException
OutOfMemoryException
AccessViolationException
XPathException
DsmlInvalidDocumentException
NotSupportedException
FormatException
DirectoryOperationException
LdapException
DirectoryException
CryptographicException
InvalidEnumArgumentException
-
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.Throwable
ArgumentNullException
ArgumentException
MissingManifestResourceException
NotImplementedException
ObjectDisposedException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
IndexOutOfRangeException
AccessViolationException
XPathException
DsmlInvalidDocumentException
NotSupportedException
DirectoryOperationException
LdapException
DirectoryException
OutOfMemoryException
CryptographicException
InvalidEnumArgumentException
MissingMethodException
TargetInvocationException
-
-
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 classDirectoryConnection
- 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 classDirectoryConnection
- 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 classDirectoryConnection
- 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 classDirectoryConnection
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classDirectoryConnection
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classDirectoryConnection
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static LdapConnection cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoLdapConnection
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
LdapConnection
instance- 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.Throwable
ObjectDisposedException
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
FormatException
AbandonedMutexException
RankException
-
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:
SendRequest
in classDirectoryConnection
- 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
-
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.Throwable
ObjectDisposedException
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
PlatformNotSupportedException
LdapException
DirectoryOperationException
OutOfMemoryException
CryptographicException
AccessViolationException
FormatException
SecurityException
UriFormatException
XPathException
DsmlInvalidDocumentException
DirectoryException
-
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.Throwable
ObjectDisposedException
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
FormatException
RankException
XPathException
-
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.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
-
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.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
-
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.Throwable
ObjectDisposedException
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
FormatException
RankException
-
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.Throwable
ObjectDisposedException
ArgumentNullException
OutOfMemoryException
CryptographicException
InvalidOperationException
ArgumentException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
NotSupportedException
PlatformNotSupportedException
LdapException
DirectoryOperationException
-
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.Throwable
ObjectDisposedException
ArgumentNullException
OutOfMemoryException
CryptographicException
InvalidOperationException
ArgumentException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
NotSupportedException
PlatformNotSupportedException
LdapException
DirectoryOperationException
-
Dispose
public void Dispose() throws java.lang.Throwable, ArgumentException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
-
close
public void close() throws java.lang.Exception
- Specified by:
close
in 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.Throwable
ArgumentNullException
TypeLoadException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotSupportedException
CultureNotFoundException
ArgumentOutOfRangeException
NotImplementedException
MissingManifestResourceException
ObjectDisposedException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
-
getSessionOptions
public LdapSessionOptions getSessionOptions() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-