Skip navigation links

Oracle Internet Directory API Reference
10g(10.1.4)

B15992-01


oracle.ldap.ospf
Class Server

java.lang.Object
  extended byoracle.ldap.ospf.Server


public final class Server
extends java.lang.Object

Defines server specific information that needs to be passed from the Oracle directory server to the Java Plug-in. This information is meta-data about the host machine and Oracle directory server where the plug-in is executing. Contains the following information:

Since:
10g Release 3 (10.1.4)

Method Summary
 java.lang.String getHostName()
          Gets the hostname from the Server object
 javax.naming.ldap.LdapContext getLdapContextFromServerPlugin()
          Connects the plug-in back to the Oracle directory server.
 javax.naming.ldap.LdapContext getNonSSLLdapContextFromServerPlugin()
          Connect the plug-in back to in the Oracle directory server using a non-SSL port.
 java.lang.String getPortNumber()
          Gets the port number from the Server object
 javax.naming.ldap.LdapContext getSSLLdapContextFromServerPlugin()
          Connects the plug-in back to the Oracle directory server using an SSL port.
 javax.naming.ldap.LdapContext getSSLLdapContextFromServerPlugin(java.lang.String sslSocketFactory)
          Connects the plug-in back to the Oracle directory server using an SSL port.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

getHostName

public java.lang.String getHostName()
Gets the hostname from the Server object
Returns:
hostname - Hostname of the host machine on which the Oracle directory server is running

getPortNumber

public java.lang.String getPortNumber()
Gets the port number from the Server object
Returns:
port - Port number on the host machine where the Oracle directory server is running

getLdapContextFromServerPlugin

public javax.naming.ldap.LdapContext getLdapContextFromServerPlugin()
                                                             throws javax.naming.NamingException
Connects the plug-in back to the Oracle directory server. Attempts to acquire an SSL connection first. If this fails, it attempts to acquire a non-SSL connection.
Returns:
ldapCtx - LdapContext
Throws:
javax.naming.NamingException

getNonSSLLdapContextFromServerPlugin

public javax.naming.ldap.LdapContext getNonSSLLdapContextFromServerPlugin()
                                                                   throws javax.naming.NamingException
Connect the plug-in back to in the Oracle directory server using a non-SSL port.
Returns:
ldapCtx - LdapContext
Throws:
javax.naming.NamingException

getSSLLdapContextFromServerPlugin

public javax.naming.ldap.LdapContext getSSLLdapContextFromServerPlugin()
                                                                throws javax.naming.NamingException
Connects the plug-in back to the Oracle directory server using an SSL port.
Returns:
ldapCtx - LdapContext
Throws:
javax.naming.NamingException

getSSLLdapContextFromServerPlugin

public javax.naming.ldap.LdapContext getSSLLdapContextFromServerPlugin(java.lang.String sslSocketFactory)
                                                                throws javax.naming.NamingException
Connects the plug-in back to the Oracle directory server using an SSL port.
Parameters:
sslSocketFactory - - SSL Socket Factory
Returns:
ldapCtx - LdapContext
Throws:
javax.naming.NamingException

Skip navigation links

Oracle Internet Directory API Reference
10g(10.1.4)

B15992-01


Copyright © 1999, 2006 Oracle. All Rights Reserved.