Class WebCloudNameLookup

java.lang.Object
edu.umd.cs.findbugs.cloud.username.WebCloudNameLookup
All Implemented Interfaces:
NameLookup

public class WebCloudNameLookup extends Object implements NameLookup
Author:
pugh
  • Constructor Details

    • WebCloudNameLookup

      public WebCloudNameLookup()
  • Method Details

    • signIn

      public boolean signIn(CloudPlugin plugin, BugCollection bugCollection) throws IOException
      Description copied from interface: NameLookup
      tries to obtain a user name. May prompt the user and/or perform network activity.
      Specified by:
      signIn in interface NameLookup
      Parameters:
      plugin - TODO
      bugCollection -
      Returns:
      true if successful
      Throws:
      IOException
    • loadProperties

      public void loadProperties(CloudPlugin plugin)
    • softSignin

      public boolean softSignin() throws IOException
      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

      public void checkResolveHost() throws UnknownHostException
      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

      public Long getSessionId()
    • getUsername

      public String getUsername()
      Description copied from interface: NameLookup
      Return name that should be used as the user identity
      Specified by:
      getUsername in interface NameLookup
    • getHost

      public String getHost()