Class OwnerImpl

  • All Implemented Interfaces:
    java.security.acl.Owner
    Direct Known Subclasses:
    AclImpl

    @Deprecated
    public class OwnerImpl
    extends java.lang.Object
    implements java.security.acl.Owner
    Deprecated.
    Owner in java.security.acl has been deprecated and marked for removal
    Class 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
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OwnerImpl

        public OwnerImpl​(java.security.Principal owner)
        Deprecated.
    • Method Detail

      • addOwner

        @Deprecated
        public boolean addOwner​(java.security.Principal caller,
                                java.security.Principal owner)
                         throws java.security.acl.NotOwnerException
        Deprecated.
        LastOwnerException in java.security.acl has been deprecated and marked for removal
        Adds 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:
        addOwner in interface java.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.LastOwnerException
        Deprecated.
        LastOwnerException in java.security.acl has been deprecated and marked for removal
        Delete 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:
        deleteOwner in interface java.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:
        isOwner in interface java.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.