3.1 NCP Code Requirements

The sample test code demonstrates how to access basic SecretStore functionality by using the NCP implementation. To use this implementation, call the method getInstance(Hashtable env) in the com.novell.security.sso.SecretStore class. The environment property com.novell.sso.secretstore should be set to com.novell.security.sso.ncp.NCPSecretStore.

The property com.novell.sso.handle is not used. The properties com.novell.sso.userdn and com.novell.sso.tree are optional. If not specified this implementation automatically accesses the SecretStore on the primary tree and server for the currently logged on user to that tree and server.

To specify a different user and/or tree, use the environment properties com.novell.sso.userdn and com.novell.sso.tree. com.novell.sso.userdn is the user’s distinguished name (java.lang.String) and com.novell.sso.tree is the tree (java.lang.String).