Class OwnerImpl
- java.lang.Object
-
- org.mozilla.jss.netscape.security.acl.OwnerImpl
-
- All Implemented Interfaces:
java.security.acl.Owner
- Direct Known Subclasses:
AclImpl
@Deprecated public class OwnerImpl extends java.lang.Object implements java.security.acl.OwnerDeprecated.Owner in java.security.acl has been deprecated and marked for removalClass implementing the Owner interface. The initial owner principal is configured as part of the constructor.
-
-
Constructor Summary
Constructors Constructor Description OwnerImpl(java.security.Principal owner)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanaddOwner(java.security.Principal caller, java.security.Principal owner)Deprecated.LastOwnerException in java.security.acl has been deprecated and marked for removalbooleandeleteOwner(java.security.Principal caller, java.security.Principal owner)Deprecated.LastOwnerException in java.security.acl has been deprecated and marked for removalbooleanisOwner(java.security.Principal owner)Deprecated.returns if the given principal belongs to the owner list.
-
-
-
Method Detail
-
addOwner
@Deprecated public boolean addOwner(java.security.Principal caller, java.security.Principal owner) throws java.security.acl.NotOwnerExceptionDeprecated.LastOwnerException in java.security.acl has been deprecated and marked for removalAdds an owner. Owners can modify ACL contents and can disassociate ACLs from the objects they protect in the AclConfig interface. The caller principal must be a part of the owners list of the ACL in order to invoke this method. The initial owner is configured at ACL construction time.- Specified by:
addOwnerin interfacejava.security.acl.Owner- Parameters:
caller- the principal who is invoking this method.owner- The owner that should be added to the owners list.- Returns:
- true if success, false if already an owner.
- Throws:
java.security.acl.NotOwnerException- if the caller principal is not on the owners list of the Acl.
-
deleteOwner
@Deprecated public boolean deleteOwner(java.security.Principal caller, java.security.Principal owner) throws java.security.acl.NotOwnerException, java.security.acl.LastOwnerExceptionDeprecated.LastOwnerException in java.security.acl has been deprecated and marked for removalDelete owner. If this is the last owner in the ACL, an exception is raised. The caller principal must be a part of the owners list of the ACL in order to invoke this method.- Specified by:
deleteOwnerin interfacejava.security.acl.Owner- Parameters:
caller- the principal who is invoking this method.owner- The owner to be removed from the owners list.- Returns:
- true if the owner is removed, false if the owner is not part of the owners list.
- Throws:
java.security.acl.NotOwnerException- if the caller principal is not on the owners list of the Acl.java.security.acl.LastOwnerException- if there is only one owner left in the group, then deleteOwner would leave the ACL owner-less. This exception is raised in such a case.
-
isOwner
public boolean isOwner(java.security.Principal owner)
Deprecated.returns if the given principal belongs to the owner list.- Specified by:
isOwnerin interfacejava.security.acl.Owner- Parameters:
owner- The owner to check if part of the owners list- Returns:
- true if the passed principal is in the owner list, false if not.
-
-