public class SRBConnector extends Object implements Connector
~/.srb
directory if it exists.Constructor and Description |
---|
SRBConnector() |
Modifier and Type | Method and Description |
---|---|
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.
|
String |
getName()
Returns the name of the type of facility to which this connector
can connect.
|
Connection |
logIn(Map authValues)
Attempts to open a connection.
|
public Icon getIcon()
Connector
public String getName()
Connector
public AuthKey[] getKeys()
Connector
public Connection logIn(Map authValues) throws IOException
Connector
authValues
map contains an entry for each of
the keys returned by Connector.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).logIn
in interface Connector
authValues
- AuthKey->value map containing connection
informationIOException
- if there was some error, for instance
authorization failureCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.