|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmdx.security.auth.callback.AbstractCallbackHandler
org.openmdx.security.auth.client.spi.TerminalCallbackHandler
public class TerminalCallbackHandler
Call-back Handler for Console I/O
| Field Summary | |
|---|---|
protected BufferedReader |
reader
To accept the console input |
| Constructor Summary | |
|---|---|
TerminalCallbackHandler()
Constructor |
|
| Method Summary | |
|---|---|
protected String |
accept(String prompt,
String defaultValue)
Accept an single value |
void |
handle(Callback[] callbacks)
Handle all callbacks |
protected void |
handle(NameCallback callback)
Handle a given callback class |
protected void |
handle(PasswordCallback callback)
Handle a given callback class |
protected void |
handle(TextInputCallback callback)
Handle a given callback class |
protected void |
handle(TextOutputCallback callback)
Handle a given callback class |
| Methods inherited from class org.openmdx.security.auth.callback.AbstractCallbackHandler |
|---|
handle, handle, handle, handle, handle, unsupported |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final BufferedReader reader
| Constructor Detail |
|---|
public TerminalCallbackHandler()
| Method Detail |
|---|
protected String accept(String prompt,
String defaultValue)
throws IOException
prompt - defaultValue -
IOException
protected void handle(NameCallback callback)
throws UnsupportedCallbackException,
IOException
AbstractCallbackHandler
handle in class AbstractCallbackHandlercallback - the callback object to be handled
UnsupportedCallbackException - if the given callback class is not supported
IOException - if callback handling fails
protected void handle(PasswordCallback callback)
throws UnsupportedCallbackException,
IOException
AbstractCallbackHandler
handle in class AbstractCallbackHandlercallback - the callback object to be handled
UnsupportedCallbackException - if the given callback class is not supported
IOException - if callback handling fails
protected void handle(TextInputCallback callback)
throws IOException,
UnsupportedCallbackException
AbstractCallbackHandler
handle in class AbstractCallbackHandlercallback - the callback object to be handled
IOException - if callback handling fails
UnsupportedCallbackException - if the given callback class is not supported
protected void handle(TextOutputCallback callback)
throws IOException,
UnsupportedCallbackException
AbstractCallbackHandler
handle in class AbstractCallbackHandlercallback - the callback object to be handled
IOException - if callback handling fails
UnsupportedCallbackException - if the given callback class is not supported
public void handle(Callback[] callbacks)
throws IOException,
UnsupportedCallbackException
AbstractCallbackHandler
handle in interface CallbackHandlerhandle in class AbstractCallbackHandlercallbacks - the callbacks to be handled
IOException
UnsupportedCallbackException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||