public interface Connector
| Modifier and Type | Method and Description |
|---|---|
javax.swing.Icon |
getIcon()
Returns an icon which labels this connector.
|
AuthKey[] |
getKeys()
Returns an array of authorization keys whose values are required
to attempt a connection.
|
java.lang.String |
getName()
Returns the name of the type of facility to which this connector
can connect.
|
Connection |
logIn(java.util.Map<AuthKey,?> authValues)
Attempts to open a connection.
|
java.lang.String getName()
javax.swing.Icon getIcon()
AuthKey[] getKeys()
Connection logIn(java.util.Map<AuthKey,?> authValues) throws java.io.IOException
getKeys(), with the entry's value
being the value for that key.
Thus the values will typically be the user's name, password, etc.
The values will be either String or char[] values
or null (char[] may be used for hidden values for
security reasons).authValues - AuthKey->value map containing connection
informationjava.io.IOException - if there was some error, for instance
authorization failure