stefan 2003/03/19 03:34:35
Modified: proposals/jcrri/src/org/apache/slide/jcr Test.java
proposals/jcrri/webapps/src/jsp browser.jsp
Added: proposals/jcrri/src/javax/jcr PasswordCredentials.java
Removed: proposals/jcrri/src/org/apache/slide/jcr/core
PasswordCredentials.java
Log:
misc. minor changes
Revision Changes Path
1.1
jakarta-slide/proposals/jcrri/src/javax/jcr/PasswordCredentials.java
Index: PasswordCredentials.java
===================================================================
/*
* PasswordCredentials.java
*
* This file is part of the specification for the
* Java Content Repository API
*/
package javax.jcr;
import javax.jcr.Credentials;
import java.io.Serializable;
/**
* <b>Level 1 and 2</b>
* <p>
* A <code>PasswordCredentials</code> provides simple username/password
* credentials.
*
* @author Stefan Guggisberg
*/
public class PasswordCredentials implements Credentials, Serializable {
private String userName;
private char[] password;
/**
* Create a new <code>PasswordCredentials</code> object, given a login
* and password.
*
* Note that the given user password is cloned before it is stored
* in the new <code>PasswordCredentials</code> object. This should
* avoid the risk of having unnecessary references to password data
* lying around in memory.
*
* @param userName the user name
* @param password the user's password
*/
public PasswordCredentials(String userName, char[] password) {
this.userName = userName;
this.password = (char[]) password.clone();
}
/**
* Returns the user password.
*
* Note that this method returns a reference to the password.
* It is the caller's responsibility to zero out the password information
* after it is no longer needed.
*
* @return the password
*/
public char[] getPassword() {
return password;
}
/**
* Returns the user name
*
* @return the user name
*/
public String getUserName() {
return userName;
}
}
1.3 +3 -4 jakarta-slide/proposals/jcrri/src/org/apache/slide/jcr/Test.java
Index: Test.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/proposals/jcrri/src/org/apache/slide/jcr/Test.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Test.java 18 Mar 2003 15:06:03 -0000 1.2
+++ Test.java 19 Mar 2003 11:34:34 -0000 1.3
@@ -67,7 +67,6 @@
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
import org.apache.slide.jcr.core.RepositoryFactory;
-import org.apache.slide.jcr.core.PasswordCredentials;
import org.apache.slide.jcr.fs.dav.DavFileSystem;
import org.apache.slide.jcr.fs.FileSystemException;
1.2 +0 -1 jakarta-slide/proposals/jcrri/webapps/src/jsp/browser.jsp
Index: browser.jsp
===================================================================
RCS file: /home/cvs/jakarta-slide/proposals/jcrri/webapps/src/jsp/browser.jsp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- browser.jsp 1 Mar 2003 06:56:11 -0000 1.1
+++ browser.jsp 19 Mar 2003 11:34:34 -0000 1.2
@@ -1,5 +1,4 @@
<%@ page import="javax.jcr.*" %><%
-%><%@ page import="org.apache.slide.jcr.core.PasswordCredentials" %><%
%><%@ page import="org.apache.slide.jcr.remote.client.RemoteRepositoryFactory" %><%
%><%@ page import="org.apache.log4j.PropertyConfigurator" %><%
%><%@ page import="org.apache.log4j.Logger" %><%
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]