Class WebCloudNameLookup

  • All Implemented Interfaces:
    NameLookup

    public class WebCloudNameLookup
    extends java.lang.Object
    implements NameLookup
    Author:
    pugh
    • Constructor Detail

      • WebCloudNameLookup

        public WebCloudNameLookup()
    • Method Detail

      • signIn

        public boolean signIn​(CloudPlugin plugin,
                              BugCollection bugCollection)
                       throws java.io.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
        Returns:
        true if successful
        Throws:
        java.io.IOException
      • loadProperties

        public void loadProperties​(CloudPlugin plugin)
      • softSignin

        public boolean softSignin()
                           throws java.io.IOException
        If the user can be authenticated due to an existing session id, do so
        Returns:
        true if we could authenticate the user
        Throws:
        java.io.IOException
      • checkResolveHost

        public void checkResolveHost()
                              throws java.net.UnknownHostException
        Throws:
        java.net.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 java.lang.Long getSessionId()
      • getUsername

        public java.lang.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 java.lang.String getHost()