@Deprecated
public class OwnerImpl
extends java.lang.Object
implements java.security.acl.Owner
Constructor and Description |
---|
OwnerImpl(java.security.Principal owner)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addOwner(java.security.Principal caller,
java.security.Principal owner)
Deprecated.
LastOwnerException in java.security.acl has been deprecated and marked for removal
|
boolean |
deleteOwner(java.security.Principal caller,
java.security.Principal owner)
Deprecated.
LastOwnerException in java.security.acl has been deprecated and marked for removal
|
boolean |
isOwner(java.security.Principal owner)
Deprecated.
returns if the given principal belongs to the owner list.
|
@Deprecated public boolean addOwner(java.security.Principal caller, java.security.Principal owner) throws java.security.acl.NotOwnerException
addOwner
in interface java.security.acl.Owner
caller
- the principal who is invoking this method.owner
- The owner that should be added to the owners list.java.security.acl.NotOwnerException
- if the caller principal is not on
the owners list of the Acl.@Deprecated public boolean deleteOwner(java.security.Principal caller, java.security.Principal owner) throws java.security.acl.NotOwnerException, java.security.acl.LastOwnerException
deleteOwner
in interface java.security.acl.Owner
caller
- the principal who is invoking this method.owner
- The owner to be removed from the owners list.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.public boolean isOwner(java.security.Principal owner)
isOwner
in interface java.security.acl.Owner
owner
- The owner to check if part of the owners list