gnu.inet.http

Class Credentials


public class Credentials
extends java.lang.Object

Represents a username/password combination that can be used to authenticate to an HTTP server.

Author:
Chris Burdess

Constructor Summary

Credentials(String username, String password)
Constructor.

Method Summary

String
getPassword()
Returns the password.
String
getUsername()
Returns the username.

Constructor Details

Credentials

public Credentials(String username,
                   String password)
Constructor.

Parameters:
username - the username
password - the password

Method Details

getPassword

public String getPassword()
Returns the password.


getUsername

public String getUsername()
Returns the username.


© Copyright 2003 The Free Software Foundation, all rights reserved