|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.srb.SRBConnector
public class SRBConnector
Connector for connecting to Storage Resource Broker filestores. The default information is taken from information in the user's ~/.srb directory if it exists.
Constructor Summary | |
---|---|
SRBConnector()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SRBConnector()
Method Detail |
---|
public Icon getIcon()
Connector
getIcon
in interface Connector
public String getName()
Connector
getName
in interface Connector
public AuthKey[] getKeys()
Connector
getKeys
in interface Connector
public Connection logIn(Map authValues) throws IOException
Connector
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
information
IOException
- if there was some error, for instance
authorization failure
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |