org.apache.cocoon.components.source.helpers
Class SourceCredential

java.lang.Object
  extended byorg.apache.cocoon.components.source.helpers.SourceCredential

public class SourceCredential
extends Object

This class represents a credential for a given user

Version:
$Id: SourceCredential.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Constructor Summary
SourceCredential(String principal)
          Create a new credential
SourceCredential(String principal, String password)
          Create a new credential
 
Method Summary
 String getPassword()
          Returns the password
 String getPrincipal()
          Returns the principal
 void setPassword(String password)
          Sets the password
 void setPrincipal(String principal)
          Sets the principal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceCredential

public SourceCredential(String principal)
Create a new credential

Parameters:
principal - The user name

SourceCredential

public SourceCredential(String principal,
                        String password)
Create a new credential

Parameters:
principal - The user name
password - Password
Method Detail

setPrincipal

public void setPrincipal(String principal)
Sets the principal

Parameters:
principal - The user name

getPrincipal

public String getPrincipal()
Returns the principal

Returns:
Principal

setPassword

public void setPassword(String password)
Sets the password

Parameters:
password - Password

getPassword

public String getPassword()
Returns the password

Returns:
Password


Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.