Repository repository = new RMIRemoteRepository(localhost1099jackrabbit.repository); SimpleCredentials c = new SimpleCredentials(alex,ok.toCharArray()); c.setAttribute(anAttribute, aValue); Session s = repository.login(c, aWorkspace); String[]attr=s.getAttributeNames(); array attr is empty. according to docs it should contains attributes from the SimpleCredentials object. if instead of writing attr=s.getAttributes() I write attr=c.getAttributes() it works, but it returns me only the attribute anAttribute. I think that also username and password should be returned.