KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > update > internal > ui > security > Authentication


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.update.internal.ui.security;
12
13 /**
14  * Keeps user and password strings.
15  */

16 public class Authentication {
17     protected String JavaDoc user;
18     protected String JavaDoc password;
19     public Authentication(String JavaDoc user, String JavaDoc password){
20         this.user = user;
21         this.password = password;
22     }
23
24     /**
25      * @return Returns the password.
26      */

27     public String JavaDoc getPassword() {
28         return password;
29     }
30     /**
31      * @return Returns the user.
32      */

33     public String JavaDoc getUser() {
34         return user;
35     }
36 }
37
Popular Tags