|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.starlink.table.jdbc.TerminalAuthenticator
public class TerminalAuthenticator
Provides JDBC authentication using the terminal; assumes that someone is sitting at System.in.
| Constructor Summary | |
|---|---|
TerminalAuthenticator()
Constructs a new authenticator which uses System.err for prompting. |
|
TerminalAuthenticator(java.io.PrintStream promptStrm)
Constructs a new authenticator with a given stream to use for writing prompts. |
|
| Method Summary | |
|---|---|
java.lang.String[] |
authenticate()
Obtains username and password. |
java.lang.String |
readPassword()
Prompts to the prompt stream and reads the password from standard input. |
java.lang.String |
readUser()
Prompts to the prompt stream and reads the user name from standard input. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TerminalAuthenticator(java.io.PrintStream promptStrm)
promptStrm - output stream for promptingpublic TerminalAuthenticator()
| Method Detail |
|---|
public java.lang.String[] authenticate()
throws java.io.IOException
JDBCAuthenticator
authenticate in interface JDBCAuthenticatorjava.io.IOException - if there is some error
public java.lang.String readUser()
throws java.io.IOException
java.io.IOException
public java.lang.String readPassword()
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||