|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.security.jaas.server.DecouplingCallbackHandler
public class DecouplingCallbackHandler
This callback handler separates the process of obtaining callbacks from the user from the process of providing the user's values to the login module. This means the JaasLoginService can figure out what callbacks the module wants and prompt the user in advance, and then turn around and pass those values to the login module, instead of actually prompting the user at the mercy of the login module.
Constructor Summary | |
---|---|
DecouplingCallbackHandler()
|
Method Summary | |
---|---|
Callback[] |
finalizeCallbackList()
Indicates that the exploring phase is over. |
void |
handle(Callback[] callbacks)
|
void |
setClientResponse(Callback[] callbacks)
Within the same VM, the client just populates the callbacks directly into the array held by this object. |
void |
setExploring()
While we're exploring, we'll discover new callbacks that the server login module wants. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DecouplingCallbackHandler()
Method Detail |
---|
public void handle(Callback[] callbacks) throws IllegalArgumentException, UnsupportedCallbackException
handle
in interface CallbackHandler
IllegalArgumentException
UnsupportedCallbackException
public void setClientResponse(Callback[] callbacks) throws IllegalArgumentException
callbacks
- The callbacks populated by the client
IllegalArgumentException
public void setExploring()
public Callback[] finalizeCallbackList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |