Advertisement
Guest User

Login

a guest
Feb 12th, 2019
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.69 KB | None | 0 0
  1. package com.company;
  2. import java.util.Scanner;
  3.  
  4. public class Login {
  5.     private String username;
  6.     private String password;
  7.     private String apiCall = "/rest/auth/1/session";
  8.     private Scanner input = new Scanner(System.in);
  9.  
  10.     void setUsername()
  11.     {
  12.         System.out.println("Login:");
  13.         this.username = input.nextLine();
  14.     }
  15.     void setPassword ()
  16.     {
  17.         System.out.println("Haslo:");
  18.         this.password = input.nextLine();
  19.     }
  20.  
  21.      String getUsername()
  22.     {
  23.         return this.username;
  24.     }
  25.      String getPassword()
  26.     {
  27.         return this.password;
  28.     }
  29.  
  30.     String getApiCall()
  31.     {
  32.         return apiCall;
  33.     }
  34.  
  35.  
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement