public class AdminNamespaceFactory
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
LDAP_NAMESPACE
A LDAP namespace implementation
|
static int |
NDS_NAMESPACE
A NDS (NDAP) namespace implementation
|
| Constructor and Description |
|---|
AdminNamespaceFactory() |
| Modifier and Type | Method and Description |
|---|---|
static AdminNamespace |
createAdminNamespace(int NamespaceType)
Create an instance of the desired namespace type.
|
static java.lang.String |
getNDSConnectedAddressFromID(java.lang.String treeAddressID)
A static method to get the address that is connected to for the given IP address or
name.
|
static java.lang.String |
getNDSTreeNameFromID(java.lang.String treeAddressID)
A static method to get the tree name from a IP address or name using the
NDSNamespace implementation.
|
static void |
initializeSecureNCPTrees(boolean IWillNotUseThisMethod,
NDSNamespace ndsns,
java.lang.String[] treeList) |
public static final int LDAP_NAMESPACE
public static final int NDS_NAMESPACE
public static AdminNamespace createAdminNamespace(int NamespaceType) throws SPIException
NamespaceType - type to create
AdminNamespaceFactory.LDAP_NAMESPACE
AdminNamespaceFactory.NDS_NAMESPACESPIExceptionpublic static java.lang.String getNDSTreeNameFromID(java.lang.String treeAddressID)
throws SPIException
treeAddressID - - This can be a valid IP address like "151.155.163.120" or
it can be an IP address that contains the port number as part of it
like "151.155.163.120:524". It can also be a valid host name in the
form "java.sun.com" or something that could be resolved through the java
InetAddress.getByName(name) functionality. DNS names and names in the
machines "hosts" files should be resolved.
It does not make sense to pass a treename in for this value because
why call it if you already have itSPIExceptionpublic static java.lang.String getNDSConnectedAddressFromID(java.lang.String treeAddressID)
throws SPIException
treeAddressID - - This can be a valid IP address like "151.155.163.120" or
it can be an IP address that contains the port number as part of it
like "151.155.163.120:524". It can also be a valid host name in the
form "java.sun.com" or something that could be resolved through the java
InetAddress.getByName(name) functionality. DNS names and names in the
machines "hosts" files should be resolved. If an IP address cannot
be determined that way, it will also take the treeAddressID string
and see if the underlying API (JClient/DClient) can connect as if
it was a tree name.SPIExceptionpublic static void initializeSecureNCPTrees(boolean IWillNotUseThisMethod,
NDSNamespace ndsns,
java.lang.String[] treeList)
throws SPIException
IWillNotUseThisMethod - - a value that if someone looks at this routine
to find out what this parameter they will know it WILL NOT BE supported
and go away - actually removed - with no warning or any type of communication.
if true then you have agreed to not use this method and will be totally
responsible for things not working when this goes away. If false it will
throw an exception.ndsns - the NDSNamespaceImpl to initialize as SecureNCP with the treeListtreeList - an array of tree names so that ALL JCContext's connected to these trees
will use Secure NCP. The treenames should not have any leading or trailing "."'s
It is just the treenames. If this matches any of the treenames in secureNCPTreeHashMap,
then this context will be setup to use SecureNCPUsers. Users need to be careful with this
because if any Netware or non eDir 8.8 servers exist in the tree and are resolved
to, the connection will be closed by the underlying NCP calls and put into
the bad address cache.SPIException
API Documentation Copyright © 1998-2004 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated ${TODAY} ${TSTAMP}.