Hi, On Tue, Dec 2, 2008 at 11:43 AM, hosseinakbari <[EMAIL PROTECTED]> wrote: > How can I put username and password for accessing a repository
The Repository.login method takes an optional Credentials argument.
You can use a SimpleCredentials instance with the username and
password as this argument:
import javax.jcr.*;
Credentials credentials = new SimpleCredentials(
"username", "password".toCharArray());
Session session = repository.login(credentials);
BR,
Jukka Zitting
