Enum AuthorizationProcedure

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      FULLY_AUTOMATIC
      Run a fully automatic procedure to get an access token from the OSM website.
      MANUALLY
      Enter an Access Token manually.
      SEMI_AUTOMATIC
      Run a semi-automatic procedure to get an access token from the OSM website.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDescription()
      Returns a translated description of this procedure
      java.lang.String getText()
      Returns the translated name of this procedure
      static AuthorizationProcedure valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static AuthorizationProcedure[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • FULLY_AUTOMATIC

        public static final AuthorizationProcedure FULLY_AUTOMATIC
        Run a fully automatic procedure to get an access token from the OSM website. JOSM accesses the OSM website on behalf of the JOSM user and interacts with the site using an OSM session, form posting and screen scraping.
      • SEMI_AUTOMATIC

        public static final AuthorizationProcedure SEMI_AUTOMATIC
        Run a semi-automatic procedure to get an access token from the OSM website. JOSM submits the standards OAuth requests to get a Request Token and an Access Token. It dispatches the user to the OSM website in an external browser to authenticate itself and to accept the request token submitted by JOSM.
      • MANUALLY

        public static final AuthorizationProcedure MANUALLY
        Enter an Access Token manually. The Access Token could have been generated by another JOSM user and sent to the current JOSM user via email, i.e. in order to grant the current OSM user the right download its private GPS traces. Or it could have been generated in a former session and filed away in a secure place.
    • Method Detail

      • values

        public static AuthorizationProcedure[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (AuthorizationProcedure c : AuthorizationProcedure.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AuthorizationProcedure valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getText

        public java.lang.String getText()
        Returns the translated name of this procedure
        Returns:
        the translated name of this procedure
      • getDescription

        public java.lang.String getDescription()
        Returns a translated description of this procedure
        Returns:
        a translated description of this procedure