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 TypeMethodDescriptionvoidstatic voidgetHost()Return name that should be used as the user identitystatic booleanvoidloadProperties(CloudPlugin plugin) static voidsaveSessionInformation(long sessionId) static voidsetSaveSessionInformation(boolean save) booleansignIn(CloudPlugin plugin, BugCollection bugCollection) tries to obtain a user name.booleanIf 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:NameLookuptries to obtain a user name. May prompt the user and/or perform network activity.- Specified by:
signInin interfaceNameLookup- Parameters:
plugin- TODObugCollection-- 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:NameLookupReturn name that should be used as the user identity- Specified by:
getUsernamein interfaceNameLookup
-
getHost
-