|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.ou.kmi.buddyspace.core.BSAuthorizationBean
BSAuthorizationBean
provides athentication handling.
It relies on BSInfoQueryBean
, which must be set after each
reconnection.
Method Summary | |
void |
addAuthListener(BSAuthListener listener)
Adds BSAuthListener to listeners notified when
authentication state changes. |
protected void |
authorize(java.lang.String user,
java.lang.String password,
java.lang.String resource)
Invokes authentication of given user . |
protected IQBean |
getIQBean()
Returns currently used IQBean . |
protected void |
prepareToDestroy()
Frees all object bindings to allow object destroy |
void |
receivedPacket(PacketEvent pe)
Invoked when a IQ packet is received. |
void |
removeAllAuthListeners()
Removes all listeners notified when authentication state changes. |
void |
removeAuthListener(BSAuthListener listener)
Removes BSAuthListener to listeners notified when
authentication state changes. |
void |
sendFailed(PacketEvent pe)
Invoked when a IQ packet send failes. |
protected void |
sendPassword(IQAuth resultExt,
java.lang.String user,
java.lang.String password,
java.lang.String resource)
Sends user information including password - appropriate password coding is used according to given IQAuth extenion. |
protected void |
sendPassword(java.lang.String user,
java.lang.String password,
java.lang.String resource)
This is now depricated - use the other one instead. |
void |
sentPacket(PacketEvent pe)
Invoked when a IQ packet is sent. |
protected void |
setIQBean(IQBean iqBean)
Sets existing and connected IQBean . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
protected void setIQBean(IQBean iqBean)
IQBean
.
Then this is registered as listener for IQ packets.
protected IQBean getIQBean()
IQBean
.
protected void prepareToDestroy()
protected void authorize(java.lang.String user, java.lang.String password, java.lang.String resource)
user
.
protected void sendPassword(java.lang.String user, java.lang.String password, java.lang.String resource)
protected void sendPassword(IQAuth resultExt, java.lang.String user, java.lang.String password, java.lang.String resource)
IQAuth
extenion.
public void receivedPacket(PacketEvent pe)
public void sendFailed(PacketEvent pe)
public void sentPacket(PacketEvent pe)
public void addAuthListener(BSAuthListener listener)
BSAuthListener
to listeners notified when
authentication state changes.
removeAuthListener(edu.ou.kmi.buddyspace.core.BSAuthListener)
,
removeAllAuthListeners()
,
#notifyAuthListeners
public void removeAuthListener(BSAuthListener listener)
BSAuthListener
to listeners notified when
authentication state changes.
addAuthListener(edu.ou.kmi.buddyspace.core.BSAuthListener)
,
removeAllAuthListeners()
,
#notifyAuthListeners
public void removeAllAuthListeners()
addAuthListener(edu.ou.kmi.buddyspace.core.BSAuthListener)
,
removeAuthListener(edu.ou.kmi.buddyspace.core.BSAuthListener)
,
#notifyAuthListeners
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |