|
xmlBlaster 1.6.2 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.xmlBlaster.test.authentication.TestHtpasswdAuthorization
| Field Summary | |
private I_XmlBlasterAccess |
con
|
private Global |
glob
|
private static java.util.logging.Logger |
log
|
java.lang.String |
ME
|
private java.lang.String |
passwdFileName
|
private java.lang.String |
RIGHT_PASSWORD
|
private int |
serverPort
|
private EmbeddedXmlBlaster |
serverThread
|
private java.lang.String |
userhome
|
| Fields inherited from class junit.framework.TestCase |
|
| Constructor Summary | |
TestHtpasswdAuthorization(java.lang.String name)
|
|
| Method Summary | |
protected void |
setUp()
|
protected void |
tearDown()
|
void |
testMethodNameAuthorization()
|
void |
testMethodNameAuthorizationNegation()
|
void |
testTopicAuthorization()
|
void |
testWildcardAuthenticationFailed()
|
void |
testWildcardAuthenticationOK()
|
void |
testXPathSubscribeAuthorization()
|
java.lang.String |
update(java.lang.String cbSessionId,
UpdateKey updateKey,
byte[] content,
UpdateQos updateQos)
This is the callback method invoked from I_XmlBlasterAccess informing the client in an asynchronous mode about a new message. |
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
| Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static java.util.logging.Logger log
private EmbeddedXmlBlaster serverThread
private final java.lang.String RIGHT_PASSWORD
private java.lang.String userhome
private java.lang.String passwdFileName
private Global glob
private I_XmlBlasterAccess con
private int serverPort
public final java.lang.String ME
| Constructor Detail |
public TestHtpasswdAuthorization(java.lang.String name)
| Method Detail |
protected void setUp()
protected void tearDown()
public void testWildcardAuthenticationOK()
public void testWildcardAuthenticationFailed()
public void testMethodNameAuthorization()
public void testMethodNameAuthorizationNegation()
public void testTopicAuthorization()
public void testXPathSubscribeAuthorization()
public java.lang.String update(java.lang.String cbSessionId,
UpdateKey updateKey,
byte[] content,
UpdateQos updateQos)
throws XmlBlasterException
I_Callback
update in interface I_CallbackcbSessionId - The session ID specified by the client which registered the callback.
You can specify a cbSessionId during connection (with ConnectQos)
and this is bounced back here so you can authenticate the message.updateKey - The arrived key containing the topic namecontent - The arrived message content. This is your payload.
XmlBlasterExceptionI_XmlBlasterAccess
|
xmlBlaster 1.6.2 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||