Overview | Package | Class | Use | Tree | Deprecated | Index | Help
|  | Oracle
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## weblogic.jndi
Interface ClientEnvironment

All Known Implementing Classes:
  Environment

    public interface ClientEnvironment

This is an environment that can be used on a thinner client. The server implementation may do things that the client implementation cannot do. In order to keep the thin client thin, this class may not pull in any weblogic specific classes.

Method Summary
`Context` | `getContext()` Returns a context that can be used with this environment.
`Hashtable` | `getProperties()` Gets the environment hashtable associated with this environment
`AbstractSubject` | `getSubject()` Gets the subject that has been associated with this thread, or null if there has not been one.
`void` | `setEnableServerAffinity(boolean enableServerAffinity)` Sets the WLContext.ENABLE_SERVER_AFFINITY property
`void` | `setProviderURL(String providerURL)` Sets the Context.PROVIDER_URL property
`void` | `setSecurityCredentials(Object password)` Sets the Context.SECURITY_CREDENTIALS property
`void` | `setSecurityPrincipal(String username)` Sets the Context.SECURITY_PRINCIPAL property

Method Detail

### setProviderURL

    void setProviderURL(String providerURL)

  Sets the Context.PROVIDER_URL property

  Parameters:
    `providerURL` - The url to use with this environment

### setSecurityPrincipal

    void setSecurityPrincipal(String username)

  Sets the Context.SECURITY_PRINCIPAL property

  Parameters:
    `username` - The username to use with this environment

### setSecurityCredentials

    void setSecurityCredentials(Object password)

  Sets the Context.SECURITY_CREDENTIALS property

  Parameters:
    `password` - The password to use with this environment

### setEnableServerAffinity

    void setEnableServerAffinity(boolean enableServerAffinity)

  Sets the WLContext.ENABLE_SERVER_AFFINITY property

  Parameters:
    `enableServerAffinity` -

### getContext

    Context getContext()
                       throws NamingException

  Returns a context that can be used with this environment. Note that the context to the system identified in the properties is only gotten once. Subsequent calls to this method will always return the previously returned context. No new context will be gotten once the initial context has been established. Create a new ClientEnvironment if you want to attempt a different connection to a remote naming context.

  Returns:
    A naming context that can be used by this client
  Throws:
    `NamingException`

### getSubject

    AbstractSubject getSubject()

  Gets the subject that has been associated with this thread, or null if there has not been one.

  Returns:
    A subject if one has been pushed onto the stack

### getProperties

    Hashtable getProperties()

  Gets the environment hashtable associated with this environment

  Returns:

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Documentation is available at http://edocs.bea.com/wls/docs103 Copyright 1996,2008, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD