|
xmlBlaster 1.6.2 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| Method Summary | |
void |
changeSecretSessionId(java.lang.String sessionId)
The current implementation of the user session handling (especially Authenticate.connect(org.xmlBlaster.engine.qos.ConnectQosServer, String))
cannot provide a real sessionId when this object is created. |
I_Manager |
getManager()
How controls this session? |
java.lang.String |
getSecretSessionId()
Return the id of this session. |
I_Subject |
getSubject()
Get the owner of this session. |
ConnectQosServer |
init(ConnectQosServer connectQos,
java.util.Map map)
Initialize the session with useful information. |
java.lang.String |
init(I_SecurityQos securityQos)
Initialize a new session and do the credential check. |
boolean |
isAuthorized(SessionHolder sessionHolder,
DataHolder dataHolder)
Check if this subject instance is permitted to do something |
boolean |
verify(I_SecurityQos securityQos)
Allows to check the given securityQos again. |
| Methods inherited from interface org.xmlBlaster.authentication.plugins.I_MsgSecurityInterceptor |
exportMessage, importMessage |
| Method Detail |
public ConnectQosServer init(ConnectQosServer connectQos,
java.util.Map map)
throws XmlBlasterException
Is called before init(I_SecurityQos) which does the authentication
connectQos - The current login informationmap - Additional information, is currently null
XmlBlasterException
public java.lang.String init(I_SecurityQos securityQos)
throws XmlBlasterException
XmlBlasterException - The initialization failed (key exchange, authentication ... failed)#init(String)
public boolean verify(I_SecurityQos securityQos)
throws XmlBlasterException
Note:
XmlBlasterExceptionpublic I_Subject getSubject()
public I_Manager getManager()
public void changeSecretSessionId(java.lang.String sessionId)
throws XmlBlasterException
Authenticate.connect(org.xmlBlaster.engine.qos.ConnectQosServer, String))
cannot provide a real sessionId when this object is created. Thus, it
uses a temporary id first and changes it to the real in a later step.The purpose of this method is to enable this functionality.
XmlBlasterException - Thrown if the new sessionId is already in use.public java.lang.String getSecretSessionId()
public boolean isAuthorized(SessionHolder sessionHolder,
DataHolder dataHolder)
sessionHolder - Holding information about the subject which requires rightsdataHolder - Holding information about the data which shall be accessed
EXAMPLE:
isAuthorized("publish", "thisIsAMessageKey");
The above line checks if this subject is permitted to >>publish<<
a message under the key >>thisIsAMessageKey<<
Known action keys:
publish, subscribe, get, erase, ...
|
xmlBlaster 1.6.2 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||