|
For the latest news and information visit The GNU Crypto project |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgnu.crypto.auth.callback.AbstractCallbackHandler
Field Summary | |
---|---|
protected ResourceBundle |
messages
|
Constructor Summary | |
---|---|
protected |
AbstractCallbackHandler()
|
Method Summary | |
---|---|
static CallbackHandler |
getInstance(String type)
|
static CallbackHandler |
getInstance(String type,
Provider provider)
|
static CallbackHandler |
getInstance(String type,
String provider)
|
void |
handle(Callback[] callbacks)
|
protected abstract void |
handleChoice(ChoiceCallback callback)
Handles a ChoiceCallback . |
protected abstract void |
handleConfirmation(ConfirmationCallback callback)
Handles a ConfirmationCallback . |
protected abstract void |
handleLanguage(LanguageCallback callback)
Handles a LanguageCallback . |
protected abstract void |
handleName(NameCallback callback)
Handles a NameCallback . |
protected void |
handleOther(Callback callback)
Handles an unknown callback. |
protected abstract void |
handlePassword(PasswordCallback callback)
Handles a PasswordCallback . |
protected abstract void |
handleTextInput(TextInputCallback callback)
Handles a TextInputCallback . |
protected abstract void |
handleTextOutput(TextOutputCallback callback)
Handles a TextOutputCallback . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final ResourceBundle messages
Constructor Detail |
protected AbstractCallbackHandler()
Method Detail |
public static CallbackHandler getInstance(String type) throws NoSuchAlgorithmException
NoSuchAlgorithmException
public static CallbackHandler getInstance(String type, String provider) throws NoSuchAlgorithmException, NoSuchProviderException
NoSuchAlgorithmException
NoSuchProviderException
public static CallbackHandler getInstance(String type, Provider provider) throws NoSuchAlgorithmException
NoSuchAlgorithmException
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException
handle
in interface CallbackHandler
IOException
UnsupportedCallbackException
protected abstract void handleChoice(ChoiceCallback callback) throws IOException
ChoiceCallback
.
callback
- The choice callback.
IOException
- If an I/O error occurs.protected abstract void handleConfirmation(ConfirmationCallback callback) throws IOException
ConfirmationCallback
.
callback
- The confirmation callback.
IOException
- If an I/O error occurs.protected abstract void handleLanguage(LanguageCallback callback) throws IOException
LanguageCallback
.
callback
- The language callback.
IOException
- If an I/O error occurs.protected abstract void handleName(NameCallback callback) throws IOException
NameCallback
.
callback
- The name callback.
IOException
- If an I/O error occurs.protected abstract void handlePassword(PasswordCallback callback) throws IOException
PasswordCallback
.
callback
- The password callback.
IOException
- If an I/O error occurs.protected abstract void handleTextInput(TextInputCallback callback) throws IOException
TextInputCallback
.
callback
- The text input callback.
IOException
- If an I/O error occurs.protected abstract void handleTextOutput(TextOutputCallback callback) throws IOException
TextOutputCallback
.
callback
- The text output callback.
IOException
- If an I/O error occurs.protected void handleOther(Callback callback) throws IOException, UnsupportedCallbackException
UnsupportedCallbackException
.
callback
- The callback to handle.
IOException
- If an I/O error occurs.
UnsupportedCallbackException
- If the specified callback is not
supported.
|
For the latest news and information visit The GNU Crypto project |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |