UserMappingOption class (Java programming language)
The UserMappingOption class is a utility class that contains the functions for providing the federated server with the remote user ID and the remote password.
Public methods
You can view the use of these functions in a sample Java™ plug-in that retrieves user mappings from an LDAP server. The files are in the sqllib/samples/federated/umplugin/ldap/ directory. The functions from this class are used in the UserMappingRepositoryLDAP.java and UserMappingLookupLDAP.java files.
- UserMappingEntry getEntry()
- Returns the UserMappingEntry object that is associated with this UserMappingOption object.
- String getName()
- Returns the name of the option.
- void setName()
- Sets the name of the option.
- UserMappingOption getNextOption()
- Returns the next option.
- void setNextOption(UserMappingOption nextOption)
- Sets the next option.
- abstract object getValue()
- Returns the value of the option. This function must return either a string value or binary value. See the StringOption and BinaryOption methods that are listed below.
StringOption class
The StringOption class is extended from the UserMappingOptions class and contains the following public methods: getValue() and setValue().Public methods
- object getValue()
- Returns the value of the string option when the option is a string.
- void setValue(String value)
- Sets the value of the string option.
BinaryOption class
The BinaryOption class is extended from the UserMappingOption class and contains the following public methods: getValue() and void setValue().Public methods
- object getValue()
- Returns the value of the binary option.
- void setValue(byte[] value)
- Sets the value of the binary option.