|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cafesoft.cams.auth.callback.MapCallbackHandler
public class MapCallbackHandler
MapCallbackHandler extends the standard JAAS
CallbackHandler interface with methods to set/get
callback values by name. This enables Cams to provide a generic,
general purpose CallbackHandler that does not need a new set/get
method for every callback value.
| Constructor Summary | |
|---|---|
MapCallbackHandler()
Create a new MapCallbackHandler instance. |
|
| Method Summary | |
|---|---|
void |
handle(Callback[] callbacks)
Retrieve or display the information requested in the provided Callbacks. |
void |
setCallbackValue(String name,
String value)
Set a callback value. |
void |
setCallbackValues(Map srcMap)
Set callback values from an existing Map. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapCallbackHandler()
| Method Detail |
|---|
public void setCallbackValue(String name,
String value)
name - the callback value name.value - the callback value.public void setCallbackValues(Map srcMap)
srcMap - the source Map from wich callback values are to be copied.
public void handle(Callback[] callbacks)
throws IOException,
UnsupportedCallbackException
handle in interface CallbackHandlercallbacks - an array of Callback objects provided by an underlying
security service which contains the information requested to be retrieved
or displayed.
IOException - if an input or output error ocurrs
UnsupportedCallbackException - if the implementation of this
method does not support one or more of the Callbacks specified in the
callbacks parameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||