Interface RemoteAuthenticationServer
-
- All Known Implementing Classes:
XmlRpcAuthenticationServer
public interface RemoteAuthenticationServer- Author:
- Pavel.Sher Date: 18.01.2007
-
-
Field Summary
Fields Modifier and Type Field Description static StringREMOTE_AUTH_SERVERstatic StringXML_RPC_SESSION_COOKIE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringauthenticate(String username, String encryptedPassword)Authenticates user using specified credentials.StringgetDisplayVersion()Current server display version number.StringgetFullServerVersion()Description of server version.StringgetPublicKey()Returns hex encoded RSA public key.StringgetServerBuildNumber()Current server build numberStringgetServerVersion()Return current server protocol versionbooleanlogout()Invalidates current session.
-
-
-
Field Detail
-
REMOTE_AUTH_SERVER
static final String REMOTE_AUTH_SERVER
- See Also:
- Constant Field Values
-
XML_RPC_SESSION_COOKIE
static final String XML_RPC_SESSION_COOKIE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPublicKey
String getPublicKey()
Returns hex encoded RSA public key. Returned public key has following format:
<hex encoded modulus>:<hex encoded exponent>- Returns:
- hex encoded modulus
-
authenticate
String authenticate(String username, String encryptedPassword) throws AuthenticationFailedException
Authenticates user using specified credentials. If authentication was successful returns session identifier and user id separated by ':'. If authentication failed throws AuthenticationFailedException.- Parameters:
username- user nameencryptedPassword- password encrypted by server public key (hex encoded)- Returns:
- session identifier
- Throws:
AuthenticationFailedException- if authentication failed
-
logout
boolean logout()
Invalidates current session.- Returns:
- true if authenticated session was found and removed and false otherwise
-
getServerVersion
String getServerVersion()
Return current server protocol version- Returns:
- current server version, like 3.0.1
-
getFullServerVersion
String getFullServerVersion()
Description of server version.- Returns:
- XStreamed ServerVersionInfo object as string
-
getServerBuildNumber
String getServerBuildNumber()
Current server build number- Returns:
- server build number, like 4332 or SNAPSHOT
-
getDisplayVersion
String getDisplayVersion()
Current server display version number.- Returns:
- server display version like 3.0 or '3.0 EAP'
-
-