jetbrains.buildServer.serverProxy
Interface RemoteAuthenticationServer


public interface RemoteAuthenticationServer

Author:
Pavel.Sher Date: 18.01.2007

Field Summary
static java.lang.String REMOTE_AUTH_SERVER
           
static java.lang.String XML_RPC_SESSION_COOKIE
           
 
Method Summary
 java.lang.String authenticate(java.lang.String username, java.lang.String encryptedPassword)
          Authenticates user using specified credentials.
 java.lang.String getDisplayVersion()
          Current server display version number.
 java.lang.String getFullServerVersion()
          Description of server version.
 java.lang.String getPublicKey()
          Returns hex encoded RSA public key.
 java.lang.String getServerBuildNumber()
          Current server build number
 java.lang.String getServerVersion()
          Return current server protocol version
 boolean logout()
          Invalidates current session.
 

Field Detail

REMOTE_AUTH_SERVER

static final java.lang.String REMOTE_AUTH_SERVER
See Also:
Constant Field Values

XML_RPC_SESSION_COOKIE

static final java.lang.String XML_RPC_SESSION_COOKIE
See Also:
Constant Field Values
Method Detail

getPublicKey

java.lang.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

java.lang.String authenticate(java.lang.String username,
                              java.lang.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 name
encryptedPassword - 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

java.lang.String getServerVersion()
Return current server protocol version

Returns:
current server version, like 3.0.1

getFullServerVersion

java.lang.String getFullServerVersion()
Description of server version.

Returns:
XStreamed ServerVersionInfo object as string

getServerBuildNumber

java.lang.String getServerBuildNumber()
Current server build number

Returns:
server build number, like 4332 or SNAPSHOT

getDisplayVersion

java.lang.String getDisplayVersion()
Current server display version number.

Returns:
server display version like 3.0 or '3.0 EAP'