public virtual void CheckAccess(INode node, FileSystemSecuredOperation operation) { if (!HasAccess(node, operation)) { throw new FileSystemSecurityException(node.Address); } }
public virtual bool HasAccess(INode node, FileSystemSecuredOperation operation) { if (!this.SecurityManager.IsActive) { return(true); } return(this.SecurityManager.CurrentContext.HasAccess(new AccessVerificationContext(node, operation))); }
public override void CheckAccess(FileSystemSecuredOperation operation) { if (!this.FileSystem.SecurityManager.CurrentContext.HasAccess ( new AccessVerificationContext(this, operation) )) { throw new FileSystemSecurityException(this.Address); } }
public AccessVerificationContext(INode node, FileSystemSecuredOperation operation) : this() { this.Node = node; this.Operation = operation; }
public virtual void CheckAccess(FileSystemSecuredOperation operation) { this.Wrappee.CheckAccess(operation); }