public class GNAuthentication extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
XML_USER_LOGOUT |
| Constructor and Description |
|---|
GNAuthentication() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
login(HTTPCallsUtils connection,
String serviceURL,
String username,
String password)
Perform a GN login.
GN auth is carried out via a JSESSIONID cookie returned by a successful login call. Url: http://server:port/geonetwork/srv/en/xml.user.login Mime-type: application/xml Post request: |
static boolean |
logout(HTTPCallsUtils connection,
String serviceURL)
Logout.
|
public static final String XML_USER_LOGOUT
public static boolean login(HTTPCallsUtils connection, String serviceURL, String username, String password)
<?xml version="1.0" encoding="UTF-8"?>
<request>
<username>user</username>
<password>pwd</password>
</request>
connection - the connectionserviceURL - the service urlusername - the usernamepassword - the passwordpublic static boolean logout(HTTPCallsUtils connection, String serviceURL)
connection - the connectionserviceURL - the service urlCopyright © 2022. All Rights Reserved.