FileDocCategorySizeDatePackage
Credentials.javaAPI DocphoneME MR2 API (J2ME)3139Wed May 02 18:00:42 BST 2007gov.nist.siplite.stack.authentication

Credentials

public class Credentials extends Object
Authentication credentials. This code is in the public domain.

Fields Summary
private String
userName
User name.
private String
password
Password.
private String
realm
Realm.
Constructors Summary
public Credentials(String userName, String password, String realm)
Creates a new Credential composed of a username password and realm for later user by the API when a 401 or 407 Message will be received

param
userName - the user name
param
password - the password
param
realm - the realm

    
                                                   
     
             
             
              
        this.userName = userName;
        this.password = password;
        this.realm = realm;
    
Methods Summary
public java.lang.StringgetPassword()
Gets the password for this credential

return
the password for this credential

        return password;
    
public java.lang.StringgetRealm()
Gets the realm for this credential

return
the realm for this credential

        return realm;
    
public java.lang.StringgetUserName()
Gets the user name for this credential

return
the user name for this credential

        return userName;
    
public voidsetPassword(java.lang.String password)
Sets the password for this credential

param
password - the password for this credential

        this.password = password;
    
public voidsetRealm(java.lang.String realm)
Sets the realm for this credential

param
realm - the realm for this credential

        this.realm = realm;
    
public voidsetUserName(java.lang.String userName)
Sets the user name for this credential

param
userName - the user name for this credential

        this.userName = userName;