jetbrains.buildServer
Class BuildAuthUtil

java.lang.Object
  extended by jetbrains.buildServer.BuildAuthUtil

public class BuildAuthUtil
extends java.lang.Object

Author:
Pavel.Sher Date: 14.05.2007

Method Summary
static long getBuildId(java.lang.String userId)
          Returns build id from the user id specified in HTTP authentication.
static boolean isAuthenticationByBuildId(java.lang.String userId)
          Returns true if specified user id represents HTTP authentication of a running build.
static java.lang.String makeUserId(long buildId)
          Makes user id for HTTP authentication by build id on server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

makeUserId

public static java.lang.String makeUserId(long buildId)
Makes user id for HTTP authentication by build id on server.

Parameters:
buildId - id of a running build
Returns:
user id

getBuildId

public static long getBuildId(java.lang.String userId)
Returns build id from the user id specified in HTTP authentication.

Parameters:
userId - user id
Returns:
build id or -1 if build id cannot be parsed

isAuthenticationByBuildId

public static boolean isAuthenticationByBuildId(java.lang.String userId)
Returns true if specified user id represents HTTP authentication of a running build.

Parameters:
userId - user id from HTTP authentication
Returns:
true if specified user id represents HTTP authentication of a running build.