diff options
| author | Emmanuel Raviart <eraviart@entrouvert.com> | 2004-07-22 10:52:11 +0000 |
|---|---|---|
| committer | Emmanuel Raviart <eraviart@entrouvert.com> | 2004-07-22 10:52:11 +0000 |
| commit | 5c6f115243a2ec13a2e077388957fabd5d59cdfe (patch) | |
| tree | 870612007ae97e63883431caee7ff446ae822aa4 /java/src/c | |
| parent | deee550561978259663cc0f1e123d6acb5835149 (diff) | |
| download | lasso-5c6f115243a2ec13a2e077388957fabd5d59cdfe.tar.gz lasso-5c6f115243a2ec13a2e077388957fabd5d59cdfe.tar.xz lasso-5c6f115243a2ec13a2e077388957fabd5d59cdfe.zip | |
A little more java binding and non-regression tests.
Diffstat (limited to 'java/src/c')
| -rw-r--r-- | java/src/c/com_entrouvert_lasso_LassoLogin.c | 49 |
1 files changed, 48 insertions, 1 deletions
diff --git a/java/src/c/com_entrouvert_lasso_LassoLogin.c b/java/src/c/com_entrouvert_lasso_LassoLogin.c index e0a726c0..b232b145 100644 --- a/java/src/c/com_entrouvert_lasso_LassoLogin.c +++ b/java/src/c/com_entrouvert_lasso_LassoLogin.c @@ -65,7 +65,7 @@ JNIEXPORT void JNICALL Java_com_entrouvert_lasso_LassoLogin_initFromDump } JNIEXPORT jint JNICALL Java_com_entrouvert_lasso_LassoLogin_buildArtifactMsg -(JNIEnv * env, jobject this, jint _authenticationResult, +(JNIEnv * env, jobject this, jboolean _authenticationResult, jstring _authenticationMethod, jstring _reauthenticateOnOrAfter, jint _method){ @@ -263,3 +263,50 @@ JNIEXPORT jint JNICALL Java_com_entrouvert_lasso_LassoLogin_processResponseMsg return result; } +JNIEXPORT jstring JNICALL Java_com_entrouvert_lasso_LassoLogin_getAssertionArtifact +(JNIEnv * env, jobject this){ + LassoLogin * login; + char *result; + + login = getCObject(env, this); + + result = login->assertionArtifact; + + return (*env)->NewStringUTF(env, result); +} + +JNIEXPORT jstring JNICALL Java_com_entrouvert_lasso_LassoLogin_getNameIdentifier +(JNIEnv * env, jobject this){ + LassoLogin * login; + char *result; + + login = getCObject(env, this); + + result = login->nameIdentifier; + + return (*env)->NewStringUTF(env, result); +} + +JNIEXPORT jint JNICALL Java_com_entrouvert_lasso_LassoLogin_getProtocolProfile +(JNIEnv * env, jobject this){ + LassoLogin * login; + int result; + + login = getCObject(env, this); + + result = login->protocolProfile; + + return result; +} + +JNIEXPORT jstring JNICALL Java_com_entrouvert_lasso_LassoLogin_getResponseDump +(JNIEnv * env, jobject this){ + LassoLogin * login; + char *result; + + login = getCObject(env, this); + + result = login->response_dump; + + return (*env)->NewStringUTF(env, result); +} |
