Class WebCloudNameLookup
java.lang.Object
edu.umd.cs.findbugs.cloud.username.WebCloudNameLookup
- All Implemented Interfaces:
NameLookup
- Author:
- pugh
-
Field Summary
Fields inherited from interface edu.umd.cs.findbugs.cloud.username.NameLookup
USER_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
static void
getHost()
Return name that should be used as the user identitystatic boolean
void
loadProperties
(CloudPlugin plugin) static void
saveSessionInformation
(long sessionId) static void
setSaveSessionInformation
(boolean save) boolean
signIn
(CloudPlugin plugin, BugCollection bugCollection) tries to obtain a user name.boolean
If the user can be authenticated due to an existing session id, do so
-
Constructor Details
-
WebCloudNameLookup
public WebCloudNameLookup()
-
-
Method Details
-
signIn
Description copied from interface:NameLookup
tries to obtain a user name. May prompt the user and/or perform network activity.- Specified by:
signIn
in interfaceNameLookup
- Parameters:
plugin
- TODO- Returns:
- true if successful
- Throws:
IOException
-
loadProperties
-
softSignin
If the user can be authenticated due to an existing session id, do so- Returns:
- true if we could authenticate the user
- Throws:
IOException
-
checkResolveHost
- Throws:
UnknownHostException
-
setSaveSessionInformation
public static void setSaveSessionInformation(boolean save) -
isSavingSessionInfoEnabled
public static boolean isSavingSessionInfoEnabled() -
clearSavedSessionInformation
public static void clearSavedSessionInformation() -
saveSessionInformation
public static void saveSessionInformation(long sessionId) -
getSessionId
-
getUsername
Description copied from interface:NameLookup
Return name that should be used as the user identity- Specified by:
getUsername
in interfaceNameLookup
-
getHost
-