[Jsdsi-users] RE: ALL_TAG
Status: Pre-Alpha
Brought to you by:
sajma
From: Luis P. <lp...@ne...> - 2004-02-11 17:33:11
|
Sameer, That's what i thought. This was driving me crazy. But makes sense to use Tag.ALL_TAG. -- Luis Pedro =20 =BB -----Original Message----- =BB From: Sameer Ajmani [mailto:aj...@cs...]=20 =BB Sent: quarta-feira, 11 de Fevereiro de 2004 17:17 =BB To: lp...@ne... =BB Cc: jsd...@li... =BB Subject: RE: ALL_TAG =BB =20 =BB Luis, =BB =20 =BB ALL_TAG is not a subclass of ExprTag, so it cannot be used=20 =BB inside SetTags or SimpleTags. My mistake -- the example I=20 =BB gave earlier won't work: =BB ("p" (*) "/a/b/c/d") // illegal! =BB =20 =BB Perhaps this is something that should be changed about the=20 =BB SPKI spec, but for now, the only way to grant all=20 =BB permissions inside a simple tag is to list the all out: =BB ("p" (*set permission1 permission2 permission3) "/a/b/c/d") =BB =20 =BB Good catch, =BB Sameer =BB =20 =BB > Sameer, =BB > =BB > Maybe the problem is mine to much hours in this but i do=20 =BB it like this: =BB > new SimpleTag("xxx", new ExprTag[] {(ExprTag)Tag.ALL_TAG, new =BB > PrefixTag("/aaa/bbb/cc")}) =BB > This is a stupid question but is this the correct way? Because=20 =BB > (ExprTag)Tag.ALL_TAG gives a cast error and i've tryed=20 =BB ExprTag.ALL_TAG=20 =BB > i've also tryed to parse(because i'm using xml) the=20 =BB Tag.ALL_TAG like=20 =BB > this (ExprTag)Tag.parseTag(Tag.ALL_TAG.toSexp()) and i=20 =BB get always the=20 =BB > cast error!! =BB > =BB > Lu=EDs Pedro Val=E9rio =BB > Universidade do Minho =BB > Departamento de Inform=E1tica =BB > Campos Gualtar =BB > 4710 =96 057 Braga =BB > URL: http://www.uminho.pt =BB > =BB > =BB > =BB -----Original Message----- =BB > =BB From: Sameer Ajmani [mailto:aj...@cs...] =BB > =BB Sent: quarta-feira, 11 de Fevereiro de 2004 16:48 =BB > =BB To: lp...@ne... =BB > =BB Subject: Re: ALL_TAG =BB > =BB =BB > =BB Luis, =BB > =BB =BB > =BB I'll look into the mailing list problems. Probably you = got =BB > =BB the error because we haven't used that list yet :) You =BB > =BB should send your questions to jsdsi-users, anyway. Be sur =BB > =BB ethat you've subscribed to the list befor eyou try to = post. =BB > =BB =BB > =BB You cannot put ALL_TAG in SetTag, and the StringTag "*" is =BB > =BB not the same as ALL_TAG. Instead, you shoudl use ALL_TAG =BB > =BB instead of the SetTag: =BB > =BB ("p" (*) (/abc/aa/d)) =BB > =BB =BB > =BB This tag grants all permissions to the file /abc/aa/d. =BB > =BB =BB > =BB Sameer =BB > =BB =BB > =BB > Sameer, =BB > =BB > =BB > =BB > Something is wrong with the Mailing List. I can't post, =BB > =BB even logged in!! =BB > =BB > I'm trying to read the archives in jsdsi-devel about =BB > =BB ALL_TAG and all i =BB > =BB > can see is a big red string 'ERROR'. =BB > =BB > =BB > =BB > Well, i'll ask u since i can't see the archive. Can i = put =BB > =BB Tag.ALL_TAG =BB > =BB > in a ExprTag[]. What i'm trying to do is an = Authorization =BB > =BB like this: =BB > =BB > I'm using SimpleTag =BB > =BB > 1. ("p" (* set (*)) (/abc/aa/d)) =BB > =BB > Wich means to me grant permissions to all files in=20 =BB "/abc/aa/d" =BB =BB > > directory but the only thing that i can do is express =BB > =BB ALL_TAG like a =BB > =BB > StringTag wich gives me this: =BB > =BB > 2. ("p" (* set *) (/abc/aa/d)) =BB > =BB > Because jsdsi wan't let me use Tag.ALL_TAG inside =BB > =BB SimpleTag. Can 1. =BB > =BB > and 2. be considered equal? =BB > =BB > =BB > =BB > Lu=EDs Pedro Val=E9rio =BB > =BB > Universidade do Minho =BB > =BB > Departamento de Inform=E1tica =BB > =BB > Campos Gualtar =BB > =BB > 4710 =96 057 Braga =BB > =BB > URL: http://www.uminho.pt =BB > =BB =BB > =BB =BB > =BB http://ajmani.net =BB > =BB =BB > =BB =BB > =BB =BB > =BB =BB =20 =BB =20 =BB http://ajmani.net =BB =20 =BB =20 =BB =20 |