|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.ibm.tspaces.ac.AclFactory
This class will create various objects that implement the java.security.acl interfaces AclFactory.createAcl() AclFactory.createAclEntry() AclFactory.createPrincipal(); AclFactory.createPermission(); Although its name suggests that this is a Java object Factory, in fact it is not. There are a number of ways that Factory classes can be built. Since I don't know what type of other implementations might be desired in the future, I will leave the coding of the Factory to the person that wants to add a 2nd implementation of the ACL interfaces. Since TSpaces itself, only refers to the Acl interfaces found in java.security and java.security.acl and to this AclFactory class, one should be able to easily replace the current implementation with another implementation that might be based on the user/group/password files that are used by the host OS.
Tuplespace| Inner Class Summary | |
static interface |
AclFactory.DefaultPermissions
Interface to define default Permissions A class can "implement AclFactory.DefaultPermissions" and then refer to these directly. |
| Constructor Summary | |
AclFactory()
|
|
| Method Summary | |
static java.security.acl.Acl |
createAcl(java.lang.String name,
java.security.Principal owner)
Construct an instance of an Acl To complete the Acl, you need to add some AclEntry objects to it. |
static java.security.acl.Acl |
createAcl(java.lang.String name,
java.security.Principal owner,
java.security.acl.AclEntry[] array)
Construct an instance of an Acl, with an array of AclEntry objects filled in. |
static java.security.acl.Acl |
createAcl(java.lang.String name,
java.security.Principal owner,
java.security.Principal user,
java.security.acl.Permission[] pArray)
Construct an instance of an Acl, with one AclEntry filled in. |
static java.security.acl.Acl |
createAcl(java.lang.String name,
java.lang.String ownerStr)
Construct an instance of an Acl with a userid string specified for the owner instead of a Principle To complete the Acl, you need to add some AclEntry objects to it. |
static java.security.acl.Acl |
createAcl(java.lang.String name,
java.lang.String ownerStr,
java.security.acl.AclEntry[] array)
Construct an instance of an Acl, with an array of AclEntry objects filled in. |
static java.security.acl.Acl |
createAcl(java.lang.String name,
java.lang.String ownerStr,
java.lang.String userStr,
java.security.acl.Permission[] pArray)
Construct an instance of an Acl, with an array of AclEntry objects filled in. |
static java.security.acl.AclEntry |
createAclEntry(java.security.Principal user,
java.security.acl.Permission p)
Construct an instance of an AclEntry that can be added to a Acl. |
static java.security.acl.AclEntry |
createAclEntry(java.security.Principal user,
java.security.acl.Permission[] pArray)
Construct an instance of an AclEntry that can be added to a Acl. |
static java.security.acl.AclEntry |
createAclEntry(java.lang.String userStr,
java.security.acl.Permission p)
Construct an instance of an AclEntry that can be added to a Acl. |
static java.security.acl.AclEntry |
createAclEntry(java.lang.String user,
java.security.acl.Permission[] pArray)
Construct an instance of an AclEntry that can be added to a Acl. |
static java.security.acl.Permission |
createPermission(java.lang.String type)
Construct an instance of a Permission A Permission is "right" to invoke some operation on a TupleSpace. |
static java.security.Principal |
createPrincipal(java.lang.String name)
Construct an instance of a Principal A Principal is either a User or a group. |
static java.security.Principal |
getPrincipal(java.lang.String name)
Get an instance of a Principal from the TSAclDBase |
static void |
setAclDBase(TsAclDBase aclDB)
setAclDBase ** |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public AclFactory()
| Method Detail |
public static void setAclDBase(TsAclDBase aclDB)
public static java.security.acl.Acl createAcl(java.lang.String name,
java.security.Principal owner)
name - The name that will be given to the Acl.owner - The owner of the Acl.Acl,
Principal,
AclEntry
public static java.security.acl.Acl createAcl(java.lang.String name,
java.lang.String ownerStr)
name - The name that will be given to the Acl.owner - The owner of the Acl.Acl,
Principal,
AclEntry
public static java.security.acl.Acl createAcl(java.lang.String name,
java.security.Principal owner,
java.security.Principal user,
java.security.acl.Permission[] pArray)
name - The name that will be given to the Acl.owner - The owner of the Acl.user - The Principal(user or group) that you want to give
permission to.pArray - An array of Permissions to be given to the PrincipalAcl,
Principal,
AclEntry
public static java.security.acl.Acl createAcl(java.lang.String name,
java.security.Principal owner,
java.security.acl.AclEntry[] array)
name - The name that will be given to the Acl.owner - The owner of the Acl.array - An array of AclEntriesAcl,
Principal,
AclEntry
public static java.security.acl.Acl createAcl(java.lang.String name,
java.lang.String ownerStr,
java.security.acl.AclEntry[] array)
name - The name that will be given to the Acl.ownerStr - The owner of the Acl.array - An array of AclEntriesAcl,
Principal,
AclEntry
public static java.security.acl.Acl createAcl(java.lang.String name,
java.lang.String ownerStr,
java.lang.String userStr,
java.security.acl.Permission[] pArray)
name - The name that will be given to the Acl.ownerStr - The owner of the Acl.pArray - An array of AclEntriesAcl,
Principal,
AclEntry
public static java.security.acl.AclEntry createAclEntry(java.security.Principal user,
java.security.acl.Permission p)
user - The Principal(user or group) that you want to give permission to.p - Permission to be given to the PrincipalAcl,
Principal,
AclEntry
public static java.security.acl.AclEntry createAclEntry(java.lang.String userStr,
java.security.acl.Permission p)
userStr - The name of the user or group that you want to give
permission to.p - Permission to be given to the PrincipalAcl,
Principal,
AclEntry
public static java.security.acl.AclEntry createAclEntry(java.security.Principal user,
java.security.acl.Permission[] pArray)
user - The Principal(user or group) that you want to give
permission to.pArray - An array of Permissions to be given to the PrincipalAcl,
Permission,
Principal,
AclEntry
public static java.security.acl.AclEntry createAclEntry(java.lang.String user,
java.security.acl.Permission[] pArray)
user - The Principal(user or group) that you want to give
permission to.pArray - An array of Permissions to be given to the PrincipalAcl,
Permission,
Principal,
AclEntrypublic static java.security.Principal createPrincipal(java.lang.String name)
name - The name that is associated with the Principal(user or group)Acl,
Principal,
Group,
AclEntrypublic static java.security.Principal getPrincipal(java.lang.String name)
name - The name that is associated with the Principal(user or group)Acl,
Principal,
Group,
AclEntrypublic static java.security.acl.Permission createPermission(java.lang.String type)
The - name that is associated with the PermissionAcl,
Principal,
Group,
AclEntry,
Permission
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||