jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bertrand Delacretaz <bdelacre...@apache.org>
Subject Re: Implementing Jaas
Date Wed, 23 Sep 2009 07:09:15 GMT
Hi Simer,

On Wed, Sep 23, 2009 at 8:54 AM, simer anand <simer.anand88@gmail.com> wrote:
> ...I went through
> the sample programs at
> http://java.sun.com/j2se/1.4.2/docs/guide/security/jaas/tutorials/GeneralAcnAndAzn.html
> and then i tried to implement it for that i put jar files into the classpath
> and in repositiory.xml i placed the  class file <AccessManager class =
> "sample.SampleAction"> </AccessManager>
> and then i went to the
> http://localhost:8080/jackrabbit-webapp-1.5.6./repository/default/
> then it asked for the username and password and after submitting them it
> showed something like this
> javax.jcr.RepositoryExceptionfailed to instantiate
> AccessManagerimplementation :
> org.apache.jackrabbit.core.security.simple.SimpleAccessManager:
> sample.SampleAction cannot be cast to
> org.apache.jackrabbit.core.security.AccessManager

The problem is that you cannot use your sample.SampleAction class in
<AccessManager> as that class does not implement the
org.apache.jackrabbit.core.security.AccessManager interface.

See http://jackrabbit.apache.org/jackrabbit-configuration.html#JackrabbitConfiguration-Securityconfiguration
for details. If you want to control what parts of the repository
content the user is allowed to access and modify, you'll have to
implement an AccessManager, not a  PrivilegedAction.


View raw message