jetbrains.buildServer.serverSide.auth
Class AuthModuleUtil

java.lang.Object
  extended by jetbrains.buildServer.serverSide.auth.AuthModuleUtil
Direct Known Subclasses:
LoginModuleUtil

public class AuthModuleUtil
extends java.lang.Object

Common utils for implementing authentication module.

Since:
8.0
See Also:
AuthModuleType

Field Summary
static java.lang.String ALLOW_CREATING_NEW_USERS_BY_LOGIN_ATTRIBUTE
           
 
Constructor Summary
AuthModuleUtil()
           
 
Method Summary
static boolean allowCreatingNewUsersByLogin(java.util.Map<java.lang.String,?> options, boolean defaultValue)
          Extracts the value of ALLOW_CREATING_NEW_USERS_BY_LOGIN_ATTRIBUTE option from options map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALLOW_CREATING_NEW_USERS_BY_LOGIN_ATTRIBUTE

@NotNull
public static final java.lang.String ALLOW_CREATING_NEW_USERS_BY_LOGIN_ATTRIBUTE
See Also:
Constant Field Values
Constructor Detail

AuthModuleUtil

public AuthModuleUtil()
Method Detail

allowCreatingNewUsersByLogin

public static boolean allowCreatingNewUsersByLogin(@NotNull
                                                   java.util.Map<java.lang.String,?> options,
                                                   boolean defaultValue)
Extracts the value of ALLOW_CREATING_NEW_USERS_BY_LOGIN_ATTRIBUTE option from options map.

Parameters:
options - options map
defaultValue - default value for the case when option is absent in map
Returns:
value of the ALLOW_CREATING_NEW_USERS_BY_LOGIN_ATTRIBUTE option or default value if option is absent in map